diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2017-03-22 15:24:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 15:24:12 -0700 |
commit | 0f1b63536b6a20e3d68062e4fcf35f0c68561e04 (patch) | |
tree | 1fd524e0e08852154f4ad935b17bfd82c5454012 /test | |
parent | 60d01debd3ac4497cc0def81f6428083157d5de0 (diff) | |
parent | 954ea7e2e94b211a0769747a2e03f48609eddb4d (diff) | |
download | scala-0f1b63536b6a20e3d68062e4fcf35f0c68561e04.tar.gz scala-0f1b63536b6a20e3d68062e4fcf35f0c68561e04.tar.bz2 scala-0f1b63536b6a20e3d68062e4fcf35f0c68561e04.zip |
Merge pull request #5783 from lrytz/t10231
SI-10231 Skip outer parameter when classfile parsing java param names
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t10231/A_1.java | 11 | ||||
-rw-r--r-- | test/files/run/t10231/Test_2.scala | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t10231/A_1.java b/test/files/run/t10231/A_1.java new file mode 100644 index 0000000000..5cc2ed3606 --- /dev/null +++ b/test/files/run/t10231/A_1.java @@ -0,0 +1,11 @@ +/* + * javac: -parameters + */ +public class A_1 { + public class Inner { + public int x; + public Inner(int i) { + x = i; + } + } +} diff --git a/test/files/run/t10231/Test_2.scala b/test/files/run/t10231/Test_2.scala new file mode 100644 index 0000000000..8f8150cab1 --- /dev/null +++ b/test/files/run/t10231/Test_2.scala @@ -0,0 +1,5 @@ +object Test extends App { + val a = new A_1 + val i = new a.Inner(i = 99) + assert(i.x == 99) +} |