Skip to content

Kotlin M14

Pre-release
Pre-release
Compare
Choose a tag to compare
@abreslav abreslav released this 01 Oct 12:16
· 91306 commits to master since this release

What's new

  • Language
    • New syntax for backing field access
    • Operators require a modifier (operator)
    • Compile-time constants are prefixed with const
    • Annotations on file classes supported
    • private on the top level is now private to file
    • internal is checked in the compiler (not only IDE)
    • private in interfaces is truly private now
    • equals in data classes compares arrays by calling their .equals() method (which works by identity)
    • lateinit val‘s are prohibited
    • many cases of inheritance and other degrees of freedom are prohibited for data classed (see this blog post)
    • protected and internal members are prohibited in interfaces
    • _, __, ___ are forbidden as in identifiers
    • identityEquals() function is deprecated in favor of ===
  • Standard Library API subdivided into part classes such as CollectionsKt
  • IDE
    • Introduce backing property refactoring
    • Move property initializer to declaration refactoring
    • Add unambiguous imports on-the-fly
    • Completion for overridden members