We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22d1a3 commit 64784c7Copy full SHA for 64784c7
src/main/scala-3/Main.scala
@@ -38,6 +38,23 @@ object Main {
38
val result = asSeenFrom(clazz.tpe.asDottyType, c.typeRef.asDottyType, a.asDottySymbol).fromDottyType
39
println(result.show)
40
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
53
+ println(memberTypeResult2.show)
54
55
56
57
58
}
59
60
def getTastyFileOrJar(clazz: Class[?]): Either[File, File] = {
0 commit comments