Skip to content

Commit fb7942f

Browse files
committed
Fix #278
1 parent d52b9ab commit fb7942f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

crates/emmylua_code_analysis/src/diagnostic/test/param_type_check_test.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,4 +433,16 @@ mod test {
433433
"#
434434
));
435435
}
436+
437+
#[test]
438+
fn test_issue_278() {
439+
let mut ws = VirtualWorkspace::new_with_init_std_lib();
440+
assert!(ws.check_code_for(
441+
DiagnosticCode::ParamTypeNotMatch,
442+
r#"
443+
local a --- @type type|'callable'
444+
error(a) -- expected `string` but found `(type|"callable")`
445+
"#
446+
))
447+
}
436448
}

0 commit comments

Comments
 (0)