-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 a method to create a new type symbol #19448
Comments
I was asked by @Gedochao to elaborate a bit on the requirements here. The idea is to add def newType(parent: Symbol, name: String, tpe: TypeRepr) It would have to work with the preexisting
I would personally prefer if it could be made abstract for completeness' sake, but the original issue raised in the discussion linked above does not require that. |
Generally, type members define a lower and an upper bound. Maybe
I think, this would also be more consistent with the rest of the API. Please also allow for passing a |
You can get it from an existing type alias. We currently do not have a method to create new type symbol. We might want to add this as
Symbol.newType
orSymbol.newTypeAlias
.Originally posted by @nicolasstucki in #19344 (comment)
The text was updated successfully, but these errors were encountered: