-
Couldn't load subscription status.
- Fork 796
Open
Labels
Area/DiagnosticsIssues related Diagnostics reported by the Compiler. #CompilerIssues related Diagnostics reported by the Compiler. #CompilerCredits/20HacktoberfestTeam/CompilerFEAll issues related to Language implementation and Compiler, this exclude run times.All issues related to Language implementation and Compiler, this exclude run times.Type/Buggood first issue
Description
Description:
public function main() {
(1|2|3)[] ar = 3; // incompatible types: expected '1|2|3[]', found 'int'
}As with type precedence, '1|2|3|[]' means 1|2|(3[]).
Correct error msg should be incompatible types: expected '(1|2|3)[]', found 'int'
Affected Versions:
2201.0.0
shreyajha03 and Murdock9803
Metadata
Metadata
Assignees
Labels
Area/DiagnosticsIssues related Diagnostics reported by the Compiler. #CompilerIssues related Diagnostics reported by the Compiler. #CompilerCredits/20HacktoberfestTeam/CompilerFEAll issues related to Language implementation and Compiler, this exclude run times.All issues related to Language implementation and Compiler, this exclude run times.Type/Buggood first issue
Type
Projects
Status
Todo