diff --git a/tests/generic-java-signatures/17069.scala b/tests/generic-java-signatures/17069.scala index 017f8e813ee5..279a8c88e2db 100644 --- a/tests/generic-java-signatures/17069.scala +++ b/tests/generic-java-signatures/17069.scala @@ -4,5 +4,7 @@ class Foo: @main def Test = val tpe = classOf[Foo].getDeclaredField("generic").getGenericType() + assert(tpe.getTypeName == "scala.collection.immutable.List") + val tpe2 = classOf[Foo].getDeclaredMethod("generic").getGenericReturnType() - assert(tpe == tpe2) + assert(tpe2.getTypeName == "scala.collection.immutable.List")