We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d52b9ab commit fb7942fCopy full SHA for fb7942f
1 file changed
crates/emmylua_code_analysis/src/diagnostic/test/param_type_check_test.rs
@@ -433,4 +433,16 @@ mod test {
433
"#
434
));
435
}
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
+ }
448
0 commit comments