summaryrefslogblamecommitdiff
path: root/test/files/run/spec-constr.scala
blob: 4c80d0954dfa1ded4f6ba323ded134857fb34c3c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                     
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")
  }
}