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 84112e8 commit b0b684eCopy full SHA for b0b684e
test/files/run/t2873.check
test/files/run/t2873.scala
@@ -5,6 +5,8 @@ abstract class RedBlack[A] extends Serializable {
5
6
object Test {
7
def main(args: Array[String]): Unit = {
8
- println(classOf[RedBlack[_]].getMethod("Empty").getGenericReturnType)
+ val r = classOf[RedBlack[_]].getMethod("Empty").getGenericReturnType.toString
9
+ // Output changed in JDK 1.8.0_172: https://github.com/scala/bug/issues/10835
10
+ assert(r == "RedBlack<A>.Empty$" || r == "RedBlack<A>$Empty$", r)
11
}
12
0 commit comments