Open dawkot opened 5 years ago
type Foo = concept foo func foo(foo: Foo): type foo = discard foo(0) let x = foo(0)
Error: expression 'foo(0)' has no type (or is ambiguous)
btw, this bug ban be bypassed by declaring the function like this:
func foo[T: Foo](foo: T): T = discard