<syntax: multiple generic constraints and inherita...
# stackoverflow
u
syntax: multiple generic constraints and inheritance what is the correct syntax for specifying multiple generic bounds/constraints in Kotlin? class CustomClass where T: Constraint1, T: Constraint2, ParentClass(), Interface1 { /* ... */ } here Constraint1 and Constraint2 are unrelated constraints/bounds on T (eg: disjoint interfaces that T implements) and ParentClass is a generic (base) class also. Interface1 is an interface CustomClass will satisfy