-
Notifications
You must be signed in to change notification settings - Fork 833
Closed
Closed
Copy link
Labels
Area-Compiler-Syntaxlexfilter, indentation and parsinglexfilter, indentation and parsingBugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.(Internal MS Team use only) Describes an issue with extreme impact on existing code.Regression
Milestone
Description
If we leave out an argument by mistake the compiler doesn't error and we can even run the code, but on runtime it crashes
This code compiles successfully when it shouldn't:
let x = doesnt.exist(, nor.this.either, also.nope)

This code does not compile successfully as it shouldn't:
let x = doesnt.exist(nope, nor.this.either, also.nope)

Repro steps
- Open fs file in Visual Studio Code
MissingArgumentShouldNotCompile.zip - See no errors
- Try to run and see a CLR error and crash
Expected behavior
The code should not compile
Actual behavior
The code compiles
Known workarounds
None
Related information
Seen in both Visual Studio Code 1.82.0 and Visual Studio 2022 17.7.3 (both up to date)
psfinaki
Metadata
Metadata
Assignees
Labels
Area-Compiler-Syntaxlexfilter, indentation and parsinglexfilter, indentation and parsingBugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.(Internal MS Team use only) Describes an issue with extreme impact on existing code.Regression
Type
Projects
Status
Done