Skip to content

Commit

Permalink
WIP: manipulate the type to avoid access using base
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Feb 28, 2024
1 parent e2b5c98 commit 113fa34
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,11 @@ private[surface] class CompileTimeSurfaceFactory[Q <: Quotes](using quotes: Q):
targetTypeParent

case TypeRef(ThisType(parent), _) =>
val result = simplifyTypeRef(parent).typeSymbol.typeMember(typeRepr.typeSymbol.name).typeRef
println(s" case non-base ${typeRepr.show} $typeRepr -> $result")
println(s" case non-base ${typeRepr.show} $typeRepr")
val parentRef = simplifyTypeRef(parent)
val result = parentRef.typeSymbol.typeMember(typeRepr.typeSymbol.name).typeRef
println(s" -> parentRef: $result")
println(s" -> result: $result")
result

case _ =>
Expand Down

0 comments on commit 113fa34

Please sign in to comment.