You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: port additional validation checks to `Langium (#576)
Closes partially #543
### Summary of Changes
Show an error if:
* A union type has no type arguments
* A callable type has optional parameters
* Positional type arguments occur after named type arguments
* Positional arguments occur after named arguments
* A parameter is variadic and optional
---------
Co-authored-by: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com>
Copy file name to clipboardexpand all lines: tests/resources/validation/other/declarations/parameter lists/must not mix optional and variadic/main.sdstest
+8-8
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ annotation MyAnnotation1(»a«: Int, »b«: Int = 1, »c«: Int, »d«: Int = 2,
9
9
10
10
// $TEST$ no error "A callable with optional parameters must not have a variadic parameter."
11
11
// $TEST$ no error "A callable with optional parameters must not have a variadic parameter."
0 commit comments