Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize scala.Selectable.WithoutPreciseParameterTypes #13315

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
nicolasstucki marked this conversation as resolved.
Show resolved Hide resolved
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