Eq for Bool

This commit is contained in:
Ayaz Hafiz 2023-03-20 15:37:25 -04:00
parent 5be8ff700d
commit 297a571b34
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 18 additions and 3 deletions

View file

@ -8839,4 +8839,19 @@ mod solve_expr {
@"Encoding#Encode.toEncoder(2) : Bool -[[] + fmt:Encode.bool(17):1]-> Encoder fmt | fmt has EncoderFormatting"
);
}
#[test]
fn derive_eq_for_bool() {
infer_queries!(
indoc!(
r#"
app "test" provides [main] to "./platform"
main = Bool.isEq Bool.true Bool.false
# ^^^^^^^^^
"#
),
@"Bool#Bool.isEq(10) : Bool, Bool -[[Bool.structuralEq(11)]]-> Bool"
);
}
}