mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Eq for Bool
This commit is contained in:
parent
5be8ff700d
commit
297a571b34
2 changed files with 18 additions and 3 deletions
|
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue