Skip to content

Commit cfa242e

Browse files
Check signature value
1 parent a732aaa commit cfa242e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/generic-java-signatures/17069.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ class Foo:
44

55
@main def Test =
66
val tpe = classOf[Foo].getDeclaredField("generic").getGenericType()
7+
assert(tpe.getTypeName == "scala.collection.immutable.List<java.lang.String>")
8+
79
val tpe2 = classOf[Foo].getDeclaredMethod("generic").getGenericReturnType()
8-
assert(tpe == tpe2)
10+
assert(tpe2.getTypeName == "scala.collection.immutable.List<java.lang.String>")

0 commit comments

Comments
 (0)