aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/run/i763.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run/i763.scala b/tests/run/i763.scala
new file mode 100644
index 000000000..e60b9cbc0
--- /dev/null
+++ b/tests/run/i763.scala
@@ -0,0 +1,12 @@
+abstract class A {
+ val s: Int
+ assert(s == 1)
+}
+
+class B(val s: Int) extends A
+
+object Test extends B(1) {
+ def main(args: Array[String]): Unit = {
+ s
+ }
+}