So I was messing around with something and tried t...
# announcements
a
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
You've tried something like
class MyCInt : Comparable<Int> by 1
?
a
yes, or an object to be exact, I got it working when I did
object : Comparable<Int> by Integer(1)
i
Yes, the latter should work. Please file a bug to kotl.in/issue, if you have time.