1
0
This commit is contained in:
Jeff 2024-02-16 13:31:35 -05:00
parent d2e0de0483
commit 97640c1b9b

View File

@ -109,26 +109,7 @@ fn function_context_captures_structure_definitions() {
bob()
"
),
Ok(Value::Map(map.clone()))
);
assert_eq!(
interpret(
"
bob = () <User> {
new User {
name = 'bob'
}
}
User = struct {
name <str>
}
bob()
"
),
Ok(Value::Map(map))
Ok(Value::Struct(StructInstance::new("User".into(), map)))
);
}