summaryrefslogtreecommitdiff
path: root/test/files/run/t3857.scala
blob: 0c8dc996cef1250a8135b2cd32df0fac47490427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class ScalaGeneric { var s: java.util.Set[String] = _ }

trait ScalaGeneric2Trait { var s: java.util.Set[String] = _ }
class ScalaGeneric2 extends ScalaGeneric2Trait

object Test extends App {
  println(classOf[ScalaGeneric].getDeclaredField("s").toGenericString)
  // java.util.Set<java.lang.String> ScalaGeneric.s

  println(classOf[ScalaGeneric2].getDeclaredField("s").toGenericString)
  // After r24319 this comment was:
  //   java.util.Set ScalaGeneric2.s -- no signature should be found because it was mixed in.
  //
  // Having reverted that with this commit, I note the original comment since
  // the original signature is also back.
  //   java.util.Set ScalaGeneric2.s -- should be same as above
}