Wrong type representation when using typeMember
to select a type inherited from a base class
#19825
Labels
typeMember
to select a type inherited from a base class
#19825
When using
typeMember
function ofTypeRepr.of[OuterType].typeSymbol
, the resulting symbol is represented asBase.this.InnerType
, notOuterType.InnerType
. This is a problem when creating a macro which is expected to return an expression ofOuterType.InnerType
type.This was found while working on
Surface
representation of types derived from Scala 2Enumeration
, see wvlet/airframe#3429.Compiler version
3.3.2, 3.4.0, 3.4.1-RC1
Minimized code
Output
Expectation
The output should be
OuterType.InnerType: OuterType.InnerType
.The text was updated successfully, but these errors were encountered: