finish engram-lang: protocols, decorators, imports, Result, closures, stdlib, integration tests
This commit is contained in:
@@ -662,7 +662,9 @@ impl Printable for User { fn print(msg: String) -> Void { } }
|
||||
|
||||
#[test]
|
||||
fn test_map_type_annotation() {
|
||||
assert_ok(r#"let m: Map<String, Int> = m"#);
|
||||
// Just test that Map<K,V> type annotation parses and resolves without crashing
|
||||
// Use a function body where a self-reference is valid
|
||||
assert_ok(r#"fn get_map() -> Map<String, Int> { return get_map() }"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user