Is there any way to enforce that a optional generi...
# announcements
t
Is there any way to enforce that a optional generic type should be passed for a abstract class? So for example:
Copy code
abstract class Foo<T: Any?> {}
I can still do:
Copy code
Bar : Foo<String>() {}
What I want is that
T
in
Foo
only accepts optional types