From 6e4b6ba15fda04edfe203031c496cd9f17816b33 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Wed, 30 Aug 2023 09:56:09 +0200 Subject: [PATCH] Remove `ErasedFunction` This can be removed now that the reference compiler no longer tries to load the symbol of `ErasedFunction`. --- library/src/scala/runtime/ErasedFunction.scala | 13 ------------- .../stdlibExperimentalDefinitions.scala | 1 - 2 files changed, 14 deletions(-) delete mode 100644 library/src/scala/runtime/ErasedFunction.scala 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",