Skip to content

Commit

Permalink
Move ErasedFunction to scala.runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Jan 13, 2023
1 parent d519010 commit ecb434d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/Definitions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ class Definitions {
lazy val PolyFunctionClass = requiredClass("scala.PolyFunction")
def PolyFunctionType = PolyFunctionClass.typeRef

lazy val ErasedFunctionClass = requiredClass("scala.ErasedFunction")
lazy val ErasedFunctionClass = requiredClass("scala.runtime.ErasedFunction")
def ErasedFunctionType = ErasedFunctionClass.typeRef

/** If `cls` is a class in the scala package, its name, otherwise EmptyTypeName */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package scala
package scala.runtime

import scala.annotation.experimental

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ val experimentalDefinitionInLibrary = Set(

// New feature: functions with erased parameters.
// Need erasedDefinitions enabled.
"scala.ErasedFunction"
"scala.runtime.ErasedFunction"
)


Expand Down

0 comments on commit ecb434d

Please sign in to comment.