mps-coderules/samples
Grigorii Kirgizov e8cb6f9ad2 Add rule for determining correct type to bind inference variable to. Fixes MPSCR-13.
The inferred type can be either capture or type variable.
This logic is covered by a new rule 'inferFromCapture'.
For examples see 'Bounds' test sample.

This inference is used in call arguments type inference.
It happens on cases when bounds arise from several places:
 (a) bounds for inference variables from type vars declared in method signature (hasBound constraint)
 (b) bounds of type vars used as arguments to call (typeVariableType term wiht bounds inside)
 (c) bounds from captures on type variables from case (b), which come in the form of 'captureOf' term
2019-12-18 21:47:07 +03:00
..
fitch Add explicit "test" facets to test solutions. 2019-11-24 17:58:15 +01:00
lambdacalc Revert "Temporarily ignore failing tests." 2019-11-26 23:09:40 +01:00
mpscore Add rule for determining correct type to bind inference variable to. Fixes MPSCR-13. 2019-12-18 21:47:07 +03:00