Closed tadeuzagallo closed 8 years ago
Simple example:
apply<T, U>(value: T, fn: (A): U): U { fn(value) } print(apply(1, _(n: Int): String { "bar" }))
The type checker can't figure the type of U in the lambda.
U
Simple example:
The type checker can't figure the type of
U
in the lambda.