Skip to content

Type and proc defs should conflict #2648

Open

Description

@amylizzle
/datum/proc/beep()
    return

/datum/test/beep
  var/thing = 1

/datum/test/beep()
    return

byond doesn't draw distinctions between class and proc defs, so you can't have a class with the same name as a proc.

in this example, /datum/test/beep() is the function def, and /datum/test/beep tries to redefine it (in BYOND)

See: https://www.byond.com/forum/post/2983339

Activity

  1. added
    Compiler
    Parity
    on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CompilerParity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions