tadeuzagallo / verve-lang

A functional language for the working hacker
https://verve-lang.org
MIT License
346 stars 7 forks source link

Nested use of generic value is not supported #21

Closed tadeuzagallo closed 8 years ago

tadeuzagallo commented 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.