diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-17 08:50:44 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-17 10:26:21 -0800 |
commit | 2820770bffe2e7d180bccbcd7a3d83944b1dd8d6 (patch) | |
tree | d2f7e2408419dbaf1129f28b54619685191d635b /test | |
parent | cc9871f8dd4f685660976f1a6e5e07c28a4c53a7 (diff) | |
download | scala-2820770bffe2e7d180bccbcd7a3d83944b1dd8d6.tar.gz scala-2820770bffe2e7d180bccbcd7a3d83944b1dd8d6.tar.bz2 scala-2820770bffe2e7d180bccbcd7a3d83944b1dd8d6.zip |
Fixing inliner visibility issue.
Changes motivated by ICodeReader neglecting to utilize logic
which exists in its superclass. Now you can enjoy empty package
classes being inlined into other empty package classes.
Closes SI-4925.
Diffstat (limited to 'test')
-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) + } +} |