Join Slack
Powered by
can I make a type inherite from Int ?
# announcements
i
Ifvwm
06/22/2019, 12:22 PM
can I make a type inherite from Int ?
🚫 4
j
Jurriaan Mous
06/22/2019, 12:35 PM
You can however create an inline class.
https://kotlinlang.org/docs/reference/inline-classes.html
❤️ 1
t
Toddobryan
06/22/2019, 2:46 PM
Or just use extension functions to declare extra methods you wish
Int
had.
https://kotlinlang.org/docs/reference/extensions.html
2
Views
Open in Slack
Previous
Next