Join Slack
Powered by
Why can type parameters not be bound by multiple o...
# announcements
r
Ruckus
11/28/2018, 10:15 PM
Why can type parameters not be bound by multiple other type parameters?
Copy code
interface Generator<T : Any, U : Any, V> where V : T, V : U { operator fun invoke(): V }
If I have to define the type ahead of time, there's no way to create a class that doesn't comply, correct?
Open in Slack
Previous
Next