Jay
02/20/2019, 9:11 AMinterface MyInterface: T where T : SomeType
?Pavlo Liapota
02/20/2019, 9:53 AMfun <T> foo(o: T) where T : MyClass, T : MyInterface {
// ...
}
So it is still possible to declare class that implements interface MyInterface
and does not extend MyClass
, but at least you will not be able to pass such instance to this function.Jay
02/20/2019, 10:06 AMSOFe
02/20/2019, 10:32 AM