Can `where` be used on a class? <https://kotlinla...
# getting-started
c
Can
where
be used on a class? https://kotlinlang.org/docs/generics.html doesn't mention the syntax
Ah, found it:
Copy code
class Foo<S> : Bar where S : Baz
l
How is that different from
class Foo<S : Baz>
?
c
Intersection types. You can do
Copy code
class Foo<S> : Bar where S : A, S : B