Skip to content

Commit 3d6fb49

Browse files
committed
Add symbols of the new experimental feature to stdlibExperimentalDefinitions
1 parent 4f3b37c commit 3d6fb49

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

library/src/scala/quoted/runtime/Patterns.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object Patterns {
3232
* Calling this method in source has undefined behavior at compile-time
3333
*/
3434
@experimental
35-
@compileTimeOnly("Illegal reference to `scala.quoted.runtime.Patterns.higherOrderHole`")
35+
@compileTimeOnly("Illegal reference to `scala.quoted.runtime.Patterns.higherOrderHoleWithTypes`")
3636
def higherOrderHoleWithTypes[U, T](args: Any*): U = ???
3737

3838
/** A splice of a name in a quoted pattern is that marks the definition of a type splice.

library/src/scala/runtime/stdLibPatches/language.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ object language:
101101

102102
/** Experimental support for quote pattern matching with polymorphic functions
103103
*
104-
* @see TODO
104+
* @see TODO-18271
105105
*/
106106
@compileTimeOnly("`quotedPatternsWithPolymorphicFunctions` can only be used at compile time in import statements")
107107
object quotedPatternsWithPolymorphicFunctions

tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ val experimentalDefinitionInLibrary = Set(
9999
"scala.Tuple$.Helpers$",
100100
"scala.Tuple$.Helpers$.ReverseImpl",
101101
"scala.Tuple$.Reverse",
102-
"scala.runtime.Tuples$.reverse"
102+
"scala.runtime.Tuples$.reverse",
103+
104+
// New feature: functions with erased parameters.
105+
// Need quotedPatternsWithPolymorphicFunctions enabled.
106+
"scala.quoted.runtime.Patterns$.higherOrderHoleWithTypes"
103107
)
104108

105109

0 commit comments

Comments
 (0)