diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-09-17 13:32:51 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-09-22 08:33:08 +1000 |
commit | e265373660e4727be6fcc6104d7a722ca662b53b (patch) | |
tree | 63f924b6445e4b0f74c6d4b1bd35be6a0aa8fb0e /test/files/presentation | |
parent | 76269ca7a63848aee1f141da75be8ca436bf9e6c (diff) | |
download | scala-e265373660e4727be6fcc6104d7a722ca662b53b.tar.gz scala-e265373660e4727be6fcc6104d7a722ca662b53b.tar.bz2 scala-e265373660e4727be6fcc6104d7a722ca662b53b.zip |
SI-9473 Cleaner references to statically owned symbols
Ever wonder why `identity("")` typechecks to
`scala.this.Predef.identity("")`?
It turns out that `mkAttributedRef` was importing
`q"$scalaPackageClass.this.Predef._"` for all these years,
rather than `q"$scalaModule.Predef._"`.
This commit makes `mkAttributedRef` special case static owners
by referring the the corresponding module, instead.
Diffstat (limited to 'test/files/presentation')
-rw-r--r-- | test/files/presentation/random.check | 2 | ||||
-rw-r--r-- | test/files/presentation/t8941.check | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/presentation/random.check b/test/files/presentation/random.check index fb3500aeea..1e40e178be 100644 --- a/test/files/presentation/random.check +++ b/test/files/presentation/random.check @@ -4,7 +4,7 @@ askType at Random.scala(18,14) ================================================================================ [response] askTypeAt (18,14) val filter: Int => Boolean = try { - java.this.lang.Integer.parseInt(args.apply(0)) match { + java.lang.Integer.parseInt(args.apply(0)) match { case 1 => ((x: Int) => x.%(2).!=(0)) case 2 => ((x: Int) => x.%(2).==(0)) case _ => ((x: Int) => x.!=(0)) diff --git a/test/files/presentation/t8941.check b/test/files/presentation/t8941.check index 341804903a..4285eebd8f 100644 --- a/test/files/presentation/t8941.check +++ b/test/files/presentation/t8941.check @@ -3,5 +3,5 @@ reload: Source.scala askType at Source.scala(6,7) ================================================================================ [response] askTypeAt (6,7) -scala.this.Predef.??? +scala.Predef.??? ================================================================================ |