[fine] Fully untested compiler
This commit is contained in:
parent
f2b9eae339
commit
d14c9a72df
3 changed files with 286 additions and 31 deletions
|
|
@ -136,7 +136,7 @@ fn assert_type_at(
|
|||
};
|
||||
|
||||
let tree_type = semantics.type_of(tree_ref);
|
||||
let actual = format!("{}", tree_type.unwrap_or(Type::Error));
|
||||
let actual = format!("{}", tree_type);
|
||||
semantic_assert_eq!(
|
||||
&semantics,
|
||||
Some(tree_ref),
|
||||
|
|
@ -167,7 +167,7 @@ fn assert_type_error_at(
|
|||
semantic_assert!(
|
||||
&semantics,
|
||||
Some(tree_ref),
|
||||
matches!(tree_type, Some(Type::Error)),
|
||||
matches!(tree_type, Type::Error),
|
||||
"The type of the {:?} tree at position {pos} was '{tree_type:?}', not an error",
|
||||
tree[tree_ref].kind
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue