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

Add support for the :kind command in the REPL #21655

Open
Gedochao opened this issue Sep 27, 2024 · 0 comments
Open

Add support for the :kind command in the REPL #21655

Gedochao opened this issue Sep 27, 2024 · 0 comments
Labels
area:repl compat:scala2:feature-parity Issues tied with features which were at some point included in Scala 2 and could be brought over. itype:enhancement

Comments

@Gedochao
Copy link
Contributor

The :kind command was (and is) supported by the Scala 2 REPL, while it is missing in Scala 3.

scala -S 2.13
Welcome to Scala 2.13.15 (OpenJDK 64-Bit Server VM, Java 17).
Type in expressions for evaluation. Or try :help.

scala> :help
All commands can be abbreviated, e.g., :he instead of :help.
(...)
:kind [-v] <type>        display the kind of a type. see also :help kind
(...)

scala> :kind Int
Int's kind is A

scala> :kind List
List's kind is F[+A]
@Gedochao Gedochao added itype:enhancement area:repl compat:scala2:feature-parity Issues tied with features which were at some point included in Scala 2 and could be brought over. labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:repl compat:scala2:feature-parity Issues tied with features which were at some point included in Scala 2 and could be brought over. itype:enhancement
Projects
None yet
Development

No branches or pull requests

1 participant