aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t318.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t318.scala')
-rw-r--r--tests/pos/t318.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/t318.scala b/tests/pos/t318.scala
new file mode 100644
index 000000000..dbe0e0528
--- /dev/null
+++ b/tests/pos/t318.scala
@@ -0,0 +1,9 @@
+object Test {
+ def fun: Int = {
+ object o {
+ def a: Int = 1;
+ class C { def b: Int = a; }
+ }
+ 0
+ }
+}