aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i744.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/i744.scala')
-rw-r--r--tests/run/i744.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/i744.scala b/tests/run/i744.scala
new file mode 100644
index 000000000..4ff6c9288
--- /dev/null
+++ b/tests/run/i744.scala
@@ -0,0 +1,8 @@
+trait A{
+ private var s = 1
+ def getS = s
+}
+
+object Test extends A {
+ def main(args: Array[String]): Unit = println(getS)
+}