diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-11-07 11:42:04 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-11-07 11:42:04 +1000 |
commit | b1e6f57b2be7ba986927c798d2fb9687b48fe61c (patch) | |
tree | 5467615d87dc72501144aa4915a27efd6e3589be /test/files | |
parent | 7830b4689a5f9962011f117c9b866a939795e58a (diff) | |
parent | 4a22b918ff938b7c627647e4ed5e74f539e62baa (diff) | |
download | scala-b1e6f57b2be7ba986927c798d2fb9687b48fe61c.tar.gz scala-b1e6f57b2be7ba986927c798d2fb9687b48fe61c.tar.bz2 scala-b1e6f57b2be7ba986927c798d2fb9687b48fe61c.zip |
Merge pull request #4096 from retronym/ticket/7019
SI-7019 Fix crasher with private[this] extension methods
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t7019.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t7019.scala b/test/files/run/t7019.scala new file mode 100644 index 0000000000..5dcc09d2b6 --- /dev/null +++ b/test/files/run/t7019.scala @@ -0,0 +1,10 @@ +final class Foo(val i: Int) extends AnyVal { + def foo() = go(i) + private[this] def go(i: Int) = i * 2 +} + +object Test { + def main(args: Array[String]): Unit = { + assert(new Foo(1).foo() == 2) + } +} |