Skip to content

issue with parsing terenaries in lists #2389

@Absolucy

Description

@Absolucy

This successfully compiles in BYOND:

/proc/cat()
    return list(
        "mrrp" = 0 ? null :
            "mrrrp mrrrow"
    )

but fails to compile with OpenDream (545cd48):

❯ DMCompiler demo.dme
Compiling demo.dme on 516.1655
Error OD0001 at demo.dm:4:13: Expected ')'
Error OD0001 at demo.dm:4:13: Expected end of proc statement
Error OD0001 at demo.dm:5:5: Expected end of proc statement
Compilation failed with 3 errors and 0 warnings
Total time: 00:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    CompilerInvolves the OpenDream compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions