In a member of a class, this refers to the current object of that class. class A { // implicit label @A inner class B { // implicit label @B fun Int.foo() { // implicit label @foo val a = this@A // ...
A constant holding the maximum value an instance of Short can have.
A constant holding the negative infinity value of Float.
The library provides the runtime component that enables full support of the reflection features in kotlin.reflect package and extensions for the reflection types. It's provided as an optional artifact ...
A constant holding the maximum value an instance of Long can have.
When creating a Kotlin library, consider building and publishing it with support for Kotlin Multiplatform. This broadens the target audience of your library, making it compatible with projects ...
This package provides utilities for efficiently testing coroutines.
With Kotlin Multiplatform, you can share code among different platforms. This article explains the constraints of the shared code, how to distinguish between shared and platform-specific parts of your ...
The Kotlin standard library provides a mechanism for requiring and giving explicit consent to use certain API elements. This mechanism allows library authors to inform users about specific conditions ...
Two most popular IDEs for Kotlin - IntelliJ IDEA and Android Studio provide powerful support for code styling. You can configure them to automatically format your code in consistence with the given ...