summaryrefslogblamecommitdiff
path: root/test/files/specialized/spec-constr.scala
blob: 38ee597299fcadaa256272fec6d54acaf99c64a3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                     
                                                 


   
object Test {
  class E[@specialized(Int) A](var f: A => Boolean) {
    def this() = this(null)

    println("hello?")
    if (f == null) f = { _ => false }
  }

  def main(args: Array[String]) {
    new E[Int]
    println("goodbye")
    println(runtime.BoxesRunTime.integerBoxCount)
  }
}