diff --git a/library/src/scala/runtime/ErasedFunction.scala b/library/src/scala/runtime/ErasedFunction.scala deleted file mode 100644 index dbbcc3431cc9..000000000000 --- a/library/src/scala/runtime/ErasedFunction.scala +++ /dev/null @@ -1,13 +0,0 @@ -package scala.runtime - -import scala.annotation.experimental - -/** Marker trait for function types with erased parameters. - * - * This trait will be refined with an `apply` method with erased parameters: - * ErasedFunction { def apply([erased] x_1: P_1, ..., [erased] x_N: P_N): R } - * This type will be erased to FunctionL, where L = N - count(erased). - * - * Note: Now we use `scala.PolyFunction` instead. This will be removed. - */ -@experimental trait ErasedFunction // TODO delete. Cannot be deleted until the reference compiler stops using it. diff --git a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala index 12ea8eb26c47..e85779b67573 100644 --- a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala +++ b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala @@ -85,7 +85,6 @@ val experimentalDefinitionInLibrary = Set( // New feature: functions with erased parameters. // Need erasedDefinitions enabled. - "scala.runtime.ErasedFunction", // will be removed (now using PolyFunction) "scala.quoted.Quotes.reflectModule.MethodTypeMethods.erasedParams", "scala.quoted.Quotes.reflectModule.MethodTypeMethods.hasErasedParams", "scala.quoted.Quotes.reflectModule.TermParamClauseMethods.erasedArgs",