Skip to content

Commit

Permalink
Update shared/src/test/diff/mlscript/Under.mls
Browse files Browse the repository at this point in the history
Co-authored-by: Lionel Parreaux <lionel.parreaux@gmail.com>
  • Loading branch information
Cunyuan(Holden) Gao and LPTK authored Jul 11, 2022
1 parent 46e9287 commit e99c62b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/test/diff/mlscript/Under.mls
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def foo { _ } = { _ }
//│ res: 1
//│ = 1

// The code leads to an error: "Duplicate parameter name not allowed in this context", so we got an undefined result here.
// * This code leads to a syntax error in NodeJS: "Duplicate parameter name not allowed in this context",
// * so we got an undefined result here.
:e
def foo { _ ; _ } = 1
//│ ╔══[ERROR] Multiple declarations of field name _ in record literal
Expand Down

0 comments on commit e99c62b

Please sign in to comment.