Skip to content

Commit

Permalink
Revert the addition of type Fields in Selectable.
Browse files Browse the repository at this point in the history
If we add it as is now, we will *not* be able to add the bound in
a future release. It is best to leave it completely undefined. The
typer is happy to ignore the case where it does not exist at all.
  • Loading branch information
sjrd authored and odersky committed May 7, 2024
1 parent 0c89c92 commit f80a8dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/scala/Selectable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ package scala
* In this case the call will synthesize `Class` arguments for the erasure of
* all formal parameter types of the method in the structural type.
*/
trait Selectable extends Any:
type Fields // TODO: add <: NamedTyple.AnyNamedTuple when NamedTuple is no longer experimental
trait Selectable extends Any

object Selectable:
/* Scala 2 compat + allowing for cross-compilation:
Expand Down

0 comments on commit f80a8dd

Please sign in to comment.