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 6568540 commit 19c6657Copy full SHA for 19c6657
tests/generic-java-signatures/derivedNames.scala
@@ -4,10 +4,12 @@ object Test {
4
def main(args: Array[String]): Unit = {
5
val objectB = classOf[Foo[Any]].getClasses
6
val returnType = objectB(1).getDeclaredMethod("m").getGenericReturnType.asInstanceOf[ParameterizedType]
7
+ val out1 = "Test$Foo.Test$Foo$A<Test.Test$Foo<T1>.B$>" // Windows and OSX
8
+ val out2 = "Test$Foo$A<Test$Foo<T1>$B$>" // Linux and sometimes Windows
9
if (scala.util.Properties.isWin)
- assert(returnType.toString == "Test$Foo.Test$Foo$A<Test.Test$Foo<T1>.B$>")
10
+ assert(returnType.toString == out1 || returnType.toString == out2)
11
else
- assert(returnType.toString == "Test$Foo$A<Test$Foo<T1>$B$>")
12
+ assert(returnType.toString == out2)
13
}
14
class Foo[T1] {
15
class A[T2]
0 commit comments