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
I would expect A.Qux to be a compilation error, because A does not have a member type Qux, without the implicit conversion.
I would expect B.Qux to be a compilation error, because B is not a stable path prefix for the B.Qux path dependent type
The equivalent code is a compilation error in Scala 2.x. It definitely seems weird that implicit conversions and other non-stable methods can be used in the path dependent type's path prefix!
TBH not sure if this is bug or feature, but @odersky mentioned it might be a bug, so filing it here for posterity.
The text was updated successfully, but these errors were encountered:
Compiler version
3.4.0
Minimized code
Output
Expectation
I would expect
A.Qux
to be a compilation error, becauseA
does not have a membertype Qux
, without the implicit conversion.I would expect
B.Qux
to be a compilation error, becauseB
is not a stable path prefix for theB.Qux
path dependent typeThe equivalent code is a compilation error in Scala 2.x. It definitely seems weird that implicit conversions and other non-stable methods can be used in the path dependent type's path prefix!
TBH not sure if this is bug or feature, but @odersky mentioned it might be a bug, so filing it here for posterity.
The text was updated successfully, but these errors were encountered: