Skip to content

Commit

Permalink
Check signature value
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneFlesselle committed Dec 8, 2023
1 parent a732aaa commit cfa242e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/generic-java-signatures/17069.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ class Foo:

@main def Test =
val tpe = classOf[Foo].getDeclaredField("generic").getGenericType()
assert(tpe.getTypeName == "scala.collection.immutable.List<java.lang.String>")

val tpe2 = classOf[Foo].getDeclaredMethod("generic").getGenericReturnType()
assert(tpe == tpe2)
assert(tpe2.getTypeName == "scala.collection.immutable.List<java.lang.String>")

0 comments on commit cfa242e

Please sign in to comment.