Skip to content

Commit 2ad3310

Browse files
committed
Change splice member to $splice
1 parent b560392 commit 2ad3310

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/StdNames.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ object StdNames {
521521
val setSymbol: N = "setSymbol"
522522
val setType: N = "setType"
523523
val setTypeSignature: N = "setTypeSignature"
524-
val splice: N = "splice"
524+
val splice: N = "$splice"
525525
val staticClass : N = "staticClass"
526526
val staticModule : N = "staticModule"
527527
val staticPackage : N = "staticPackage"

library/src/scala/quoted/Expr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import scala.runtime.quoted.Unpickler.Pickled
44

55
sealed abstract class Expr[+T] {
66

7-
final def splice: T = throw new Error("splice should have been compiled away")
7+
final def `$splice`: T = throw new Error("splice should have been compiled away")
88

99
/** Evaluate the contents of this expression and return the result.
1010
*

library/src/scala/quoted/Type.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import scala.reflect.ClassTag
55
import scala.runtime.quoted.Unpickler.Pickled
66

77
sealed abstract class Type[T] {
8-
type splice = T
8+
type `$splice` = T
99
}
1010

1111
/** Some basic type tags, currently incomplete */

0 commit comments

Comments
 (0)