Skip to content

Commit 64784c7

Browse files
committed
memberType results
1 parent b22d1a3 commit 64784c7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/main/scala-3/Main.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,23 @@ object Main {
3838
val result = asSeenFrom(clazz.tpe.asDottyType, c.typeRef.asDottyType, a.asDottySymbol).fromDottyType
3939
println(result.show)
4040
assert(result =:= TypeRepr.of[D[Int]], result)
41+
42+
val memberTypeResult1 = clazz.tpe.memberType(c)
43+
println(memberTypeResult1)
44+
try {
45+
println(memberTypeResult1.show)
46+
} catch {
47+
case e =>
48+
e.printStackTrace() // MatchError ???
49+
}
50+
val memberTypeResult2 = clazz.tpe.memberType(a)
51+
println(memberTypeResult2)
52+
try {
53+
println(memberTypeResult2.show)
54+
} catch {
55+
case e =>
56+
e.printStackTrace() // MatchError ???
57+
}
4158
}
4259

4360
def getTastyFileOrJar(clazz: Class[?]): Either[File, File] = {

0 commit comments

Comments
 (0)