rootandy
04/25/2019, 8:19 PMprivate val <T> buffer: List<T> where T : A, T : SomeInterface
Problem: this is not working since T
is not used in "its receiver type" - can somebody help me with the correct syntax for my purpose?Shawn
04/25/2019, 8:28 PMkarelpeeters
04/25/2019, 8:33 PMShawn
04/25/2019, 8:34 PMList<T | SomeInterface>
😕karelpeeters
04/25/2019, 8:37 PM&
😒imple_smile:rootandy
04/25/2019, 8:39 PMShawn
04/25/2019, 8:39 PMrootandy
04/25/2019, 8:40 PMprivate val buffer: List<A & SomeInterface>
would be another great option to show what I mean