diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t3836.scala | 14 | ||||
-rw-r--r-- | test/files/pos/t5504/s_1.scala | 4 | ||||
-rw-r--r-- | test/files/pos/t5504/s_2.scala | 8 |
3 files changed, 26 insertions, 0 deletions
diff --git a/test/files/pos/t3836.scala b/test/files/pos/t3836.scala new file mode 100644 index 0000000000..840f171164 --- /dev/null +++ b/test/files/pos/t3836.scala @@ -0,0 +1,14 @@ +package foo + +package object bar { + type IOException = java.io.IOException +} + +package baz { + import java.io._ + import foo.bar._ + + object Test { + def f = new IOException + } +} diff --git a/test/files/pos/t5504/s_1.scala b/test/files/pos/t5504/s_1.scala new file mode 100644 index 0000000000..35cb2c8bae --- /dev/null +++ b/test/files/pos/t5504/s_1.scala @@ -0,0 +1,4 @@ +// a.scala +package object foo { + val m: List[_] = Nil +} diff --git a/test/files/pos/t5504/s_2.scala b/test/files/pos/t5504/s_2.scala new file mode 100644 index 0000000000..03eecf6e19 --- /dev/null +++ b/test/files/pos/t5504/s_2.scala @@ -0,0 +1,8 @@ +// b.scala +package foo + +object Test { + def main(args: Array[String]): Unit = { + println(foo.m) + } +} |