aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/modules1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/modules1.scala')
-rw-r--r--tests/untried/pos/modules1.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/untried/pos/modules1.scala b/tests/untried/pos/modules1.scala
new file mode 100644
index 000000000..3da14af4f
--- /dev/null
+++ b/tests/untried/pos/modules1.scala
@@ -0,0 +1,14 @@
+package scala {
+
+ object a {
+
+ object b {
+
+ trait c {}
+ def foo(x: c): c = bar(x)
+
+ }
+
+ def bar(x: b.c): a.b.c = { b.foo(x); x }
+ }
+}