diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t4925.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t4925/S_1.scala | 6 | ||||
-rw-r--r-- | test/files/pos/t4925/S_2.scala | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t4925.flags b/test/files/pos/t4925.flags new file mode 100644 index 0000000000..ea03113c66 --- /dev/null +++ b/test/files/pos/t4925.flags @@ -0,0 +1 @@ +-optimise -Xfatal-warnings
\ No newline at end of file diff --git a/test/files/pos/t4925/S_1.scala b/test/files/pos/t4925/S_1.scala new file mode 100644 index 0000000000..0b3a75b8f7 --- /dev/null +++ b/test/files/pos/t4925/S_1.scala @@ -0,0 +1,6 @@ +class A { + final class Inner { + @inline def foo = 7 + } + def inner = new Inner +} diff --git a/test/files/pos/t4925/S_2.scala b/test/files/pos/t4925/S_2.scala new file mode 100644 index 0000000000..f32d871367 --- /dev/null +++ b/test/files/pos/t4925/S_2.scala @@ -0,0 +1,8 @@ +class B { + def baz = { + val a = new A + val o = a.inner + val z = o.foo + println(z) + } +} |