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
There is something weird in inferencing when instantiation is occurring (in Inferencing.scala when Inferencing.isFullyDefined is called from inliner 🤷♂) :
committing TS[8, 1, 0] to TS[1, 0], fromConstr = Constraint(
uninstVars = ;
constrained types = [R <: Int] => R
bounds =
R := Nothing
ordering =
), toConstr = Constraint(
uninstVars = R;
constrained types = [R <: Int] => R
bounds =
R <: Int
ordering =
)
Inlining instantiates type arguments to the call. You can try to leave out the isFullyDefined call in the Inliner, but I guess bad things would happen. It seems like a scary feature interaction to inline code that references type variables that are not yet instantiated.
biboudis
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 19, 2019
minimized code
expectation
It should work as in the normal case.
The text was updated successfully, but these errors were encountered: