also, is there a way in this context: ```class Fo...
# announcements
d
also, is there a way in this context:
Copy code
class Foo<T> {
  fun <U> function() { ... }
}
to compile-time constraint
U
to be either
T
or
List<T>
(subclasses of T are OK too)?
s
afaik there’s no way to constrain a generic type with OR logic, only AND (https://kotlinlang.org/docs/tutorials/kotlin-for-py/generics.html#constraints)