Skip to content

Fixes void expressions in ternary not giving a compile-time error#2653

Open
ozgurerturk wants to merge 1 commit into
OpenDreamProject:masterfrom
ozgurerturk:fix/void-in-ternary
Open

Fixes void expressions in ternary not giving a compile-time error#2653
ozgurerturk wants to merge 1 commit into
OpenDreamProject:masterfrom
ozgurerturk:fix/void-in-ternary

Conversation

@ozgurerturk

Copy link
Copy Markdown
Contributor

() in ternary now gives compile error.

Also updated void ternary test.

Fixes #2643

@boring-cyborg boring-cyborg Bot added the Compiler Involves the OpenDream compiler label Jul 1, 2026
@github-actions github-actions Bot added the size/S label Jul 1, 2026
@wixoaGit

wixoaGit commented Jul 1, 2026

Copy link
Copy Markdown
Member

This was the only reason DMASTVoid existed. That class can be removed now, and this replaced with an error like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compiler Involves the OpenDream compiler size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

() should be a compile failure as of 516.1683

2 participants