Hey folks, what's the right syntax to define a cla...
# random
d
Hey folks, what's the right syntax to define a class with delegation +
where
clause?
Copy code
interface Processor<T>

class AdvancedProcessor<T>(
    delegate: Processor<T>
) : Processor<T> by delegate where T : Number, T : Comparable<Number>
Unresolved reference: where
s
this is an unfortunate corner case where we have to rely on a newline to separate the clauses
thank you color 1
💡 1
if you insert one after the delegate, it should work
d
Wow! Great! I was sure there was some workaround 😄 I was trying placing parentheses here and there 😄
😅 2
👍 2