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
ThisType prefix leaks outside of the class it's defined instead of being substituted when referencing a member from the self-type (bug in asSeenFrom?)
#15030
Closed
kitlangton opened this issue
Apr 26, 2022
· 0 comments
· Fixed by #20474
smarter
changed the title
Compiler error when doing weird thing (@smarter will surely have a better name for this)
ThisType prefix leaks outside of the class it's defined instead of being substituted when referencing a member from the self-type (bug in asSeenFrom?)
Apr 26, 2022
Compiler version
3.1.1
Minimized code
Here's a Scastie link
Expectation
I would expect to be able to instantiate my record correctly. This actually will compile if I delete the
Field[Int]
type ascription onval field
(https://scastie.scala-lang.org/y6cLE8oXRE6bXmCcYH5lLw).The text was updated successfully, but these errors were encountered: