Skip to content

Commit 6744d63

Browse files
authored
Merge pull request #13315 from dotty-staging/stabilize-Selectable.WithoutPreciseParameterTypes
Stabilize `scala.Selectable.WithoutPreciseParameterTypes`
2 parents 45ce129 + 33db779 commit 6744d63

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/src/scala/Selectable.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,5 @@ object Selectable:
4949
* the additional restriction that the signatures of the refinement and
5050
* the definition that implements the refinment must match.
5151
*/
52-
@experimental
5352
trait WithoutPreciseParameterTypes extends Selectable
5453
end Selectable

tests/pos/i12211.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ class BB[T]
2020
def test3: (a: AA) => (b: BB[a.type]) => BB[?] =
2121
(a: AA) => (b: BB[a.type]) => b
2222

23-
@annotation.experimental // TODO: Remove once WithoutPreciseParameterTypes is no longer experimental
2423
trait RelaxedSelectable extends Selectable.WithoutPreciseParameterTypes:
2524
def applyDynamic(name: String, paramTypes: Class[_]*)(args: Any*): Any = ???
26-
@annotation.experimental // TODO: Remove once WithoutPreciseParameterTypes is no longer experimental
25+
2726
class Sink[A] extends RelaxedSelectable {
2827
def put(x: A): Unit = {}
2928
}

0 commit comments

Comments
 (0)