Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 36c2e34

Browse files
authoredJul 26, 2018
Merge pull request #4616 from dotty-staging/add-transparent
Add transparent methods - untyped trees version
2 parents 6240daa + 88e7d18 commit 36c2e34

File tree

283 files changed

+4404
-1586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+4404
-1586
lines changed
 

‎bench/tests/power-macro/PowerMacro.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import scala.quoted.Expr
22

33
object PowerMacro {
44

5-
inline def power(inline n: Long, x: Double) = ~powerCode(n, '(x))
5+
transparent def power(transparent n: Long, x: Double) = ~powerCode(n, '(x))
66

77
def powerCode(n: Long, x: Expr[Double]): Expr[Double] =
88
if (n == 0) '(1.0)

‎compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
433433
val Flag_METHOD: Flags = Flags.Method.bits
434434
val ExcludedForwarderFlags: Flags = {
435435
Flags.Specialized | Flags.Lifted | Flags.Protected | Flags.JavaStatic |
436-
Flags.Bridge | Flags.VBridge | Flags.Private | Flags.Macro
436+
Flags.Bridge | Flags.Private | Flags.Macro
437437
}.bits
438438

439439
def isQualifierSafeToElide(qual: Tree): Boolean = tpd.isIdempotentExpr(qual)

0 commit comments

Comments
 (0)
Please sign in to comment.