We’re happy to announce the Early Access Preview (EAP) build for Kotlin 1.2.40!
Getting the EAP build
For IntelliJ IDEA
You can configure Early Access Preview channel in Tools → Kotlin → Configure Kotlin Plugin Updates. Change the update channel to ‘Early Access Preview 1.2.x’ and press Check for updates now.
For Maven or Gradle
Add the https://dl.bintray.com/kotlin/kotlin-eap repository URL to the list of project repositories. Here is how to do this in Gradle:
On the point about “Restricting visibility of classifiers inside companion objects”, I’m quite surprised that you were allowed in the first place to access nested classes in companions of direct super-types etc by their short names.
As the diagrams in KT-21515 clearly show, this can lead to some horrendous resolution issues.
I’m therefore pleased to hear that this is going to be outlawed in future. Access will still be permitted via fully qualified names, of course.