summaryrefslogblamecommitdiff
path: root/test/files/run/t1766.scala
blob: ff81da3f8e68e0080f51578c3131683fe41fbc71 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                         
                         
 
                      
 
                                  
 



                                               
 
   
 
                
 
 
import scala.language.{ reflectiveCalls }

object Test extends App {

  class C(s: String) {

    def this(i: Int) = this("bar")

    def f = {
      val v: { def n: Int } = new { val n = 3 }
      v.n
    }

  }

  new C("foo").f

}