gleam-lang/gleam
Voir sur GitHubType inference issue expected Test(a) but found Test(a)
Open
#2 550 ouverte le 17 janv. 2024
help wantedhigh priority
Métriques du dépôt
- Stars
- (21 417 stars)
- Métriques de merge PR
- (Merge moyen 10j 19h) (69 PRs mergées en 30 j)
Description
type Test(a) {
Test(a)
}
fn it(value: Test(a)) {
it2(value)
}
fn it2(value: Test(a)) -> Test(a) {
it(value)
}
Gives this error on the test2 call
Type mismatch
The type of this returned value doesn't match the return type
annotation of this function.
Expected type:
Test(a)
Found type:
Test(a)
Similar issue #1893