summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-01-17 08:50:44 -0800
committerPaul Phillips <paulp@improving.org>2012-01-17 10:26:21 -0800
commit2820770bffe2e7d180bccbcd7a3d83944b1dd8d6 (patch)
treed2f7e2408419dbaf1129f28b54619685191d635b /test
parentcc9871f8dd4f685660976f1a6e5e07c28a4c53a7 (diff)
downloadscala-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.flags1
-rw-r--r--test/files/pos/t4925/S_1.scala6
-rw-r--r--test/files/pos/t4925/S_2.scala8
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)
+ }
+}