Skip to content

Commit 955de87

Browse files
authored
make namedTupleCanEqual stable (#26243)
Fixes #26242 ## How much have you relied on LLM-based tools in this contribution? Not at all ## How was the solution tested? Covered by existing tests (this is a refactoring)
2 parents 9556c5f + 3c82450 commit 955de87

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

library/src/scala/NamedTuple.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import compiletime.ops.boolean.*
33
import collection.immutable.{SeqMap, ListMap}
44

55
import language.experimental.captureChecking
6-
import scala.annotation.experimental
76
import scala.annotation.unused
87
import scala.annotation.publicInBinary
98

@@ -21,7 +20,6 @@ object NamedTuple:
2120

2221
// Alternatively we could restrict `N` to be identical on both sides, but this provides less
2322
// useful error messages
24-
@experimental
2523
given namedTupleCanEqual: [N1 <: Tuple, N2 <: Tuple, V1 <: Tuple, V2 <: Tuple]
2624
=> (@unused eqN: N1 =:= N2)
2725
=> (@unused eqV: CanEqual[V1, V2])

tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ val experimentalDefinitionInLibrary = Set(
102102

103103
// New feature: Erased trait
104104
"scala.compiletime.Erased",
105-
106-
// New API: Multiversal equality for Named Tuples
107-
"scala.NamedTuple$.namedTupleCanEqual",
108105
)
109106

110107

0 commit comments

Comments
 (0)