So I was messing around with something and tried to do a delegate (Comparable) by a primitive, but then there's some internal error in the compiler instead of syntax error or w/e?
i
ilya.gorbunov
11/30/2018, 9:39 PM
You've tried something like
class MyCInt : Comparable<Int> by 1
?
a
Alowaniak
11/30/2018, 9:42 PM
yes, or an object to be exact, I got it working when I did
object : Comparable<Int> by Integer(1)
i
ilya.gorbunov
11/30/2018, 9:43 PM
Yes, the latter should work. Please file a bug to kotl.in/issue, if you have time.