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













                                               
                                               
 
trait Tr

class Foo[@specialized(Int) T](_x: T) extends {
  val bar = "abc"
  val baz = "bbc"
} with Tr {
  val x = _x
  println(x)
  println(bar)
}

object Test extends Application {
  new Foo("a")
  new Foo(42)
  println(runtime.BoxesRunTime.integerBoxCount)
}