aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/run/i1144/AB_1.scala6
-rw-r--r--tests/run/i1144/C_2.scala3
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/i1144/AB_1.scala b/tests/run/i1144/AB_1.scala
new file mode 100644
index 000000000..ff37674db
--- /dev/null
+++ b/tests/run/i1144/AB_1.scala
@@ -0,0 +1,6 @@
+trait A {
+ def x = 3
+}
+trait B extends A {
+ override def x = super.x * 2
+}
diff --git a/tests/run/i1144/C_2.scala b/tests/run/i1144/C_2.scala
new file mode 100644
index 000000000..855bcec96
--- /dev/null
+++ b/tests/run/i1144/C_2.scala
@@ -0,0 +1,3 @@
+object Test extends B {
+ def main(args: Array[String]) = assert(x == 6, x)
+}