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/run/macro-typecheck-implicitsdisabled.check | |
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/run/macro-typecheck-implicitsdisabled.check')
-rw-r--r-- | test/files/run/macro-typecheck-implicitsdisabled.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/macro-typecheck-implicitsdisabled.check b/test/files/run/macro-typecheck-implicitsdisabled.check index 91d8fabd72..07404cf3fb 100644 --- a/test/files/run/macro-typecheck-implicitsdisabled.check +++ b/test/files/run/macro-typecheck-implicitsdisabled.check @@ -1,2 +1,2 @@ -scala.this.Predef.ArrowAssoc[Int](1).->[Int](2) +scala.Predef.ArrowAssoc[Int](1).->[Int](2) scala.reflect.macros.TypecheckException: value -> is not a member of Int |