Skip to content

Commit 9924098

Browse files
committed
add test
1 parent b36acec commit 9924098

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/emmylua_code_analysis/src/compilation/test/annotation_test.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,17 @@ mod test {
124124
"#,
125125
));
126126
}
127+
128+
#[test]
129+
fn test_type_return_usage() {
130+
let mut ws = VirtualWorkspace::new();
131+
132+
assert!(ws.check_code_for(
133+
DiagnosticCode::AnnotationUsageError,
134+
r#"
135+
---@type string
136+
return ""
137+
"#,
138+
));
139+
}
127140
}

0 commit comments

Comments
 (0)