kotlin
kotlin copied to clipboard
The Kotlin Programming Language.
Strings: Add add{Prefix,Suffix}() extension functions
This is for symmetry with the existing remove{Prefix,Suffix}() functions.
Atomicfu compiler plugin for JS/IR backend
Provide samples for isDefined function KT-20357
This is my first commit to Kotlin library. Please review and provide feedback to if I'm meeting the guidelines. If so, I will provide more samples for the std library.
KT-21392 Fix the description of `MutableMap.getOrPut()`
Make clear that the `defaultValue` is also called if the key is present in the map but the value is `null`. See: [KT-21392](https://youtrack.jetbrains.com/issue/KT-21392) If you like this change I can...
Use AGP support for Kotlin sources when it is available
This change introduces support for Kotlin source directories when they specified in AGP. Please note this this feature is not yet available in the released AGP, but adding suport in...
Avoid running call checkers when possible
Commit d8b0c7aaec added an optimization: call checkers are not invoked if BindingTrace.wantsDiagnostics() returns false. However, the optimization was never applied to KotlinToResolvedCallTransformer, which was introduced around the same time in...
JVM: do not erase Array<T> if T is reified
inline fun Any?.foo() = this is Array should be equivalent to inline fun Any?.foo2() = this is T inline fun Any?.foo() = foo2() but right now it isn't. (Does this...
NI: don't use constraints with StubType when determining type variable readiness
#KT-42591 Fixed