You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes the `freeTypes` parameters on `typeCheckExpr` and `runExpr`,
since we now have public `substituteTypes` on both trees and types.
Also implements long-awaited `inferImplicitValue` and `inferImplicitView`
(thanks to Miles Sabin for nudging me!)
macroLogVerbose("inferring implicit view from %s to %s for %s, macros = %s, reportAmbiguous = %s".format(from, to, tree, !withMacrosDisabled, reportAmbiguous))
* This populates symbols and types of the tree and possibly transforms it to reflect certain desugarings.
26
26
*
27
-
* If the tree has unresolved type variables (represented as instances of ``FreeTypeSymbol'' symbols),
28
-
* then they might, might be partially or might not be specified in the ``freeTypes'' parameter.
27
+
* If the tree has unresolved type variables (represented as instances of `FreeTypeSymbol` symbols),
28
+
* then they all have to be resolved first using `Tree.substituteTypes`, or an error occurs.
29
29
*
30
-
* If ``silent'' is false, ``TypeError'' will be thrown in case of a typecheck error.
31
-
* If ``silent'' is true, the typecheck is silent and will return ``EmptyTree'' if an error occurs.
30
+
* If `silent` is false, `TypeError` will be thrown in case of a typecheck error.
31
+
* If `silent` is true, the typecheck is silent and will return `EmptyTree` if an error occurs.
32
32
* Such errors don't vanish and can be inspected by turning on -Ydebug.
33
33
*
34
34
* Typechecking can be steered with the following optional parameters:
35
-
* ``withImplicitViewsDisabled'' recursively prohibits implicit views (though, implicit vals will still be looked up and filled in), default value is false
36
-
* ``withMacrosDisabled'' recursively prohibits macro expansions and macro-based implicits, default value is false
35
+
* `withImplicitViewsDisabled` recursively prohibits implicit views (though, implicit vals will still be looked up and filled in), default value is false
36
+
* `withMacrosDisabled` recursively prohibits macro expansions and macro-based implicits, default value is false
0 commit comments