summaryrefslogtreecommitdiff
path: root/test/files/run/t6331b.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-9473 Cleaner references to statically owned symbolsJason Zaugg2015-09-221-3/+3
| | | | | | | | | | | | 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.
* SI-6331 Avoid typing an If tree with a constant type.Jason Zaugg2012-09-081-0/+30
The fast path in typedIf added in 8552740b avoided lubbing the if/else branch types if they are identical, but this fails to deconst the type. This could lead to the entire if expression being replaced by a constant. Also introduces a new tool in partest for nicer checkfiles. // in Test.scala trace(if (t) -0d else 0d) // in Test.check trace> if (Test.this.t) -0.0 else 0.0 res: Double = -0.0