You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module foo
import bar
type foo {
Foo
}
fun to-int(x: foo): int {
match (x) {
Foo -> 1
}
}
module bar
public type bar {
Foo
}
I get this error:
src/foo.kk(11, 5): error: identifier Foo is ambiguous. Possible candidates:
Foo : foo
bar/Foo: bar/bar
hint : give a type annotation to the function parameters or arguments
This seems wrong: I have specified that x has type foo, so it isn't ambiguous.
The text was updated successfully, but these errors were encountered:
Consider these two files:
I get this error:
This seems wrong: I have specified that
x
has typefoo
, so it isn't ambiguous.The text was updated successfully, but these errors were encountered: