summaryrefslogtreecommitdiff
path: root/test/files/neg/t3507-old.scala
blob: 9a8c7c54621704247545977a2e2f952aa5fad309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class A {
  object b {
    object c
  }
  def m = b.c
}

object Test {
  var a: A = new A // mutable
  val c /*: object _1.b.c forSome { val _1: A } */ = a.m // widening using existential

  def mani[T: Manifest](x: T) = ()
  mani/*[object _1.b.c]*/(c) // kaboom in manifestOfType / TreeGen.mkAttributedQualifier
  // --> _1 is not in scope here
}