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
Exception in thread "main" java.lang.AssertionError: assertion failed: failure to
construct path from method next/anonymous class Object with Test1.Foo{...}/value
<local Test1$>/object Test1/package <empty>/package <root> to `this` of
class $_lazy_implicit_$2;
anonymous class Object with Test1.Foo{...} does not have an outer accessor
This is the inlining equivalent of a similar interaction between by-name implicits and macros in scalac and reported and fixed here: scala/scala#7199.
The Dotty fix is quite similar ... PR incoming.
The text was updated successfully, but these errors were encountered:
When constructing the dictionary for a byname implicit resolution we
have to ensure that the owners of any definitions which have been
hoisted into the dictionary are correct. Prior to this PR this was only
done fully for implicit expansions which didn't involve inlining. We fix
that here by ensuring that all definitions under a given dictionary
entry are owned directly or indirectly by that dictionary entry.
Fixesscala#5766.
The following,
crashes the compiler with,
This is the inlining equivalent of a similar interaction between by-name implicits and macros in scalac and reported and fixed here: scala/scala#7199.
The Dotty fix is quite similar ... PR incoming.
The text was updated successfully, but these errors were encountered: