Open AlexYukikaze opened 9 years ago
Currently that is not possible, because all information about generics is removed after type-checking. The necessary information is not available at runtime.
The same restrictions apply to languages such as Java. Changing the implementation of generics is possible, but would take some time. So I am not sure, if I can implement this any time soon.
It is possible to add typecasting feature to generic types?
I'm want implement something like that but now it's impossible