Closed
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)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done