The solution for inferring the type of a closure parameter using auxiliary typeScheme/2 constraint and processing all "inference sites" doesn't work for some situations, such as closure returning a closure with untyped (var) parameter. The new solution uses regular typeOf/2 constraint and calculates the closure type assuming a variable as the return type. This must not be inferred from the context. Avoid assigning a type to the closure the 2nd time, which causes a cascade of typeOf/2 activations. |
||
|---|---|---|
| .. | ||
| controlflow/jetbrains.mps.baseLanguageExt2 | ||
| fitch | ||
| lambdacalc | ||
| mpscore | ||