mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 08:18:37 +02:00
Fix parser when def has missing params
This commit is contained in:
@ -709,3 +709,8 @@ fn missing_column_error() -> TestResult {
|
||||
"cannot find column",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn missing_parameters() -> TestResult {
|
||||
fail_test(r#"def foo {}"#, "expected [")
|
||||
}
|
||||
|
Reference in New Issue
Block a user