Does Kotlin have a "character"?

I continue to find the trait mentioned in the Kotlin examples. For example, this answer uses trait .

Is the trait keyword used in Kotlin? If so, where can I find information about it, and if it is not, was this part of the language specification at some point?

+5
source share
1 answer

The trait keyword was a keyword in Kotlin, but now it has been removed. This was deprecated on the release of the Kotlin M12.

Here you can find.

+6
source

Source: https://habr.com/ru/post/1272644/


All Articles