robstoll
02/16/2023, 3:34 PMclass Foo<T> where T: I, ... ()
and not after ()
as for functionsSam
02/16/2023, 3:37 PMwhere
clause goes after the default constructor and before the class body.robstoll
02/16/2023, 3:37 PMclass Foo<T> where T: Comparable<T>, T: CharSequence (val t: T)
doesn't workSam
02/16/2023, 3:38 PMclass Foo<T>(val t: T) where T: Comparable<T>, T: CharSequence
robstoll
02/16/2023, 3:38 PMclass Foo<T> (val t: T) where T: Comparable<T>, T: CharSequence
does, I could swear before it didn'tSam
02/16/2023, 3:38 PMrobstoll
02/16/2023, 3:38 PM()
anyway. thanks 🙂