Skip to content

Commit

Permalink
Stabilize scala.Selectable.WithoutPreciseParameterTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Aug 17, 2021
1 parent 12cb6c5 commit 33db779
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion library/src/scala/Selectable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ object Selectable:
* the additional restriction that the signatures of the refinement and
* the definition that implements the refinment must match.
*/
@experimental
trait WithoutPreciseParameterTypes extends Selectable
end Selectable
3 changes: 1 addition & 2 deletions tests/pos/i12211.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ class BB[T]
def test3: (a: AA) => (b: BB[a.type]) => BB[?] =
(a: AA) => (b: BB[a.type]) => b

@annotation.experimental // TODO: Remove once WithoutPreciseParameterTypes is no longer experimental
trait RelaxedSelectable extends Selectable.WithoutPreciseParameterTypes:
def applyDynamic(name: String, paramTypes: Class[_]*)(args: Any*): Any = ???
@annotation.experimental // TODO: Remove once WithoutPreciseParameterTypes is no longer experimental

class Sink[A] extends RelaxedSelectable {
def put(x: A): Unit = {}
}
Expand Down

0 comments on commit 33db779

Please sign in to comment.