Merge pull request #2857 from rtfeldman/abilities-mono

Codegen for abilities
This commit is contained in:
Richard Feldman 2022-04-16 22:59:16 -04:00 committed by GitHub
commit 718b999751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 442 additions and 103 deletions

View file

@ -5913,4 +5913,23 @@ mod solve_expr {
"U64",
)
}
#[test]
fn alias_ability_member() {
infer_eq_without_problem(
indoc!(
r#"
app "test" provides [ thething ] to "./platform"
Hash has
hash : a -> U64 | a has Hash
thething =
itis = hash
itis
"#
),
"a -> U64 | a has Hash",
)
}
}