summaryrefslogtreecommitdiff
path: root/test/files/run/spec-early.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/spec-early.scala')
-rw-r--r--test/files/run/spec-early.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/spec-early.scala b/test/files/run/spec-early.scala
new file mode 100644
index 0000000000..84a8983f8c
--- /dev/null
+++ b/test/files/run/spec-early.scala
@@ -0,0 +1,15 @@
+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)
+}