mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
test(editor): constrain empty record
This commit is contained in:
parent
79b5af951b
commit
47f1bad862
@ -86,6 +86,7 @@ fn infer_eq(actual: &str, expected_str: &str) {
|
||||
&mut env,
|
||||
&expr,
|
||||
Expected::NoExpectation(Type2::Variable(var)),
|
||||
Region::zero(),
|
||||
);
|
||||
|
||||
let Env {
|
||||
@ -129,3 +130,15 @@ fn constrain_str() {
|
||||
"Str",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn constrain_empty_record() {
|
||||
infer_eq(
|
||||
indoc!(
|
||||
r#"
|
||||
{}
|
||||
"#
|
||||
),
|
||||
"{}",
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user