diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-02-13 22:04:54 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-02-14 00:40:51 +0100 |
commit | adb218d8d230b4713942f5b220d8cd0602995aae (patch) | |
tree | ed6db1c13ca3a36098ca54f9a5c46e2e82f0e59f /test | |
parent | 6548dcf12d83e327df2f90048140fb95346b7e95 (diff) | |
download | scala-adb218d8d230b4713942f5b220d8cd0602995aae.tar.gz scala-adb218d8d230b4713942f5b220d8cd0602995aae.tar.bz2 scala-adb218d8d230b4713942f5b220d8cd0602995aae.zip |
Fixes https://issues.scala-lang.org/browse/SI-5229
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/reify_inner1.check | 1 | ||||
-rw-r--r-- | test/files/run/reify_inner1.scala | 22 | ||||
-rw-r--r-- | test/files/run/reify_inner2.check | 1 | ||||
-rw-r--r-- | test/files/run/reify_inner2.scala | 22 | ||||
-rw-r--r-- | test/files/run/reify_inner3.check | 1 | ||||
-rw-r--r-- | test/files/run/reify_inner3.scala | 22 | ||||
-rw-r--r-- | test/files/run/reify_inner4.check | 1 | ||||
-rw-r--r-- | test/files/run/reify_inner4.scala | 22 | ||||
-rw-r--r-- | test/files/run/t5229_1.check (renamed from test/pending/run/t5229_1.check) | 0 | ||||
-rw-r--r-- | test/files/run/t5229_1.scala (renamed from test/pending/run/t5229_1.scala) | 0 | ||||
-rw-r--r-- | test/files/run/t5229_2.check (renamed from test/pending/run/t5229_2.check) | 0 | ||||
-rw-r--r-- | test/files/run/t5229_2.scala (renamed from test/pending/run/t5229_2.scala) | 0 | ||||
-rw-r--r-- | test/files/run/t5270.check (renamed from test/pending/run/t5270.check) | 0 | ||||
-rw-r--r-- | test/files/run/t5270.scala (renamed from test/pending/run/t5270.scala) | 0 | ||||
-rw-r--r-- | test/pending/run/t5229_1_nolift.scala | 1 |
15 files changed, 92 insertions, 1 deletions
diff --git a/test/files/run/reify_inner1.check b/test/files/run/reify_inner1.check new file mode 100644 index 0000000000..d8263ee986 --- /dev/null +++ b/test/files/run/reify_inner1.check @@ -0,0 +1 @@ +2
\ No newline at end of file diff --git a/test/files/run/reify_inner1.scala b/test/files/run/reify_inner1.scala new file mode 100644 index 0000000000..69931198e0 --- /dev/null +++ b/test/files/run/reify_inner1.scala @@ -0,0 +1,22 @@ +import scala.tools.nsc.reporters._ +import scala.tools.nsc.Settings +import reflect.runtime.Mirror.ToolBox + +object Test extends App { + val code = scala.reflect.Code.lift{ + class C { + class D { + val x = 2 + } + } + + val outer = new C() + val inner = new outer.D() + println(inner.x) + }; + + val reporter = new ConsoleReporter(new Settings) + val toolbox = new ToolBox(reporter) + val ttree = toolbox.typeCheck(code.tree) + toolbox.runExpr(ttree) +} diff --git a/test/files/run/reify_inner2.check b/test/files/run/reify_inner2.check new file mode 100644 index 0000000000..d8263ee986 --- /dev/null +++ b/test/files/run/reify_inner2.check @@ -0,0 +1 @@ +2
\ No newline at end of file diff --git a/test/files/run/reify_inner2.scala b/test/files/run/reify_inner2.scala new file mode 100644 index 0000000000..0f12fd472a --- /dev/null +++ b/test/files/run/reify_inner2.scala @@ -0,0 +1,22 @@ +import scala.tools.nsc.reporters._ +import scala.tools.nsc.Settings +import reflect.runtime.Mirror.ToolBox + +object Test extends App { + val code = scala.reflect.Code.lift{ + class C { + object D { + val x = 2 + } + } + + val outer = new C() + val inner = outer.D + println(inner.x) + }; + + val reporter = new ConsoleReporter(new Settings) + val toolbox = new ToolBox(reporter) + val ttree = toolbox.typeCheck(code.tree) + toolbox.runExpr(ttree) +} diff --git a/test/files/run/reify_inner3.check b/test/files/run/reify_inner3.check new file mode 100644 index 0000000000..d8263ee986 --- /dev/null +++ b/test/files/run/reify_inner3.check @@ -0,0 +1 @@ +2
\ No newline at end of file diff --git a/test/files/run/reify_inner3.scala b/test/files/run/reify_inner3.scala new file mode 100644 index 0000000000..6b97b42b34 --- /dev/null +++ b/test/files/run/reify_inner3.scala @@ -0,0 +1,22 @@ +import scala.tools.nsc.reporters._ +import scala.tools.nsc.Settings +import reflect.runtime.Mirror.ToolBox + +object Test extends App { + val code = scala.reflect.Code.lift{ + object C { + class D { + val x = 2 + } + } + + val outer = C + val inner = new outer.D + println(inner.x) + }; + + val reporter = new ConsoleReporter(new Settings) + val toolbox = new ToolBox(reporter) + val ttree = toolbox.typeCheck(code.tree) + toolbox.runExpr(ttree) +} diff --git a/test/files/run/reify_inner4.check b/test/files/run/reify_inner4.check new file mode 100644 index 0000000000..d8263ee986 --- /dev/null +++ b/test/files/run/reify_inner4.check @@ -0,0 +1 @@ +2
\ No newline at end of file diff --git a/test/files/run/reify_inner4.scala b/test/files/run/reify_inner4.scala new file mode 100644 index 0000000000..de8c973b09 --- /dev/null +++ b/test/files/run/reify_inner4.scala @@ -0,0 +1,22 @@ +import scala.tools.nsc.reporters._ +import scala.tools.nsc.Settings +import reflect.runtime.Mirror.ToolBox + +object Test extends App { + val code = scala.reflect.Code.lift{ + object C { + object D { + val x = 2 + } + } + + val outer = C + val inner = outer.D + println(inner.x) + }; + + val reporter = new ConsoleReporter(new Settings) + val toolbox = new ToolBox(reporter) + val ttree = toolbox.typeCheck(code.tree) + toolbox.runExpr(ttree) +} diff --git a/test/pending/run/t5229_1.check b/test/files/run/t5229_1.check index e69de29bb2..e69de29bb2 100644 --- a/test/pending/run/t5229_1.check +++ b/test/files/run/t5229_1.check diff --git a/test/pending/run/t5229_1.scala b/test/files/run/t5229_1.scala index 1d7bf0590b..1d7bf0590b 100644 --- a/test/pending/run/t5229_1.scala +++ b/test/files/run/t5229_1.scala diff --git a/test/pending/run/t5229_2.check b/test/files/run/t5229_2.check index 5db6ec9b38..5db6ec9b38 100644 --- a/test/pending/run/t5229_2.check +++ b/test/files/run/t5229_2.check diff --git a/test/pending/run/t5229_2.scala b/test/files/run/t5229_2.scala index 67be7328a6..67be7328a6 100644 --- a/test/pending/run/t5229_2.scala +++ b/test/files/run/t5229_2.scala diff --git a/test/pending/run/t5270.check b/test/files/run/t5270.check index 08839f6bb2..08839f6bb2 100644 --- a/test/pending/run/t5270.check +++ b/test/files/run/t5270.check diff --git a/test/pending/run/t5270.scala b/test/files/run/t5270.scala index 10f79790b0..10f79790b0 100644 --- a/test/pending/run/t5270.scala +++ b/test/files/run/t5270.scala diff --git a/test/pending/run/t5229_1_nolift.scala b/test/pending/run/t5229_1_nolift.scala deleted file mode 100644 index 33855d2e4f..0000000000 --- a/test/pending/run/t5229_1_nolift.scala +++ /dev/null @@ -1 +0,0 @@ -object C |