Kotlin 1.1 M01 (Early Access Preview)
Pre-release
Pre-release
·
89452 commits
to master
since this release
Language features
-
Coroutines (async/await, generators) (proposal)
Current limitations:
-
Bound callable references (proposal)
-
Type aliases (proposal)
Current limitations:
- type alias constructors for inner classes are not supported yet
- annotations on type alias are not supported yet
- limited IDE support
-
Local delegated properties (proposal)
-
JDK dependent built-in classes (proposal)
-
Sealed class inheritors in the same file (proposal)
-
Allow base classes for data classes (proposal)
Scripting
- Implement support for Script Definition Template
and related functionality, except the following parts:- automatic script templates discovery is not implemented
@file:ScriptTemplate
annotation is not supported- the parameters
javaHome
andscripts
fromKotlinScriptExternalDependencies
are not used yet
- Implement support for custom template-based scripts in IDEA: resolving, completion and navigation to symbols from script classpath and sources
- Implement GradleScriptTemplateProvider extension that supplies a script template if gradle with
kotlin script support is used in the project
Compiler
Issues fixed
KT-4779
Generate default methods for implementations in interfacesKT-11780
Fixed incorrect "No cast needed" warningKT-12156
Fixed incorrect error oninline
modifier inside final classKT-12358
Report missing error "Abstract member not implemented" when a fake method of 'Any' is inherited from an interfaceKT-6206
Generate equals/hashCode/toString in data class always unless it'll cause a JVM signature clash errorKT-8990
Fixed incorrect error "virtual member hidden" for a private method of an inner classKT-12429
Fixed visibility checks for annotation usage on top-level declarationsKT-5068
Introduced a special diagnostic message for "type mismatch" errors such asfun f(): Int = { 1 }
.
Standard Library
KT-8254
Provide standard library supplement artifacts for using with JDK 7 and 8.
These artifacts include extensions for the types available in the latter JDKs, such asAutoCloseable.use
(KT-5899
) orStream.toList
.KT-12753
Provide an access to named group matches ofRegex
match result (for JDK 8 only).- Add
assertFails
overload with message to kotlin-test.
IDE
New features
-
"Leaking this" inspection
This inspection reports dangerous operations inside constructors including:
- Accessing non-final property in constructor
- Calling non-final function in constructor
- Using 'this' as function argument in constructor of non-final class