mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
This is not accurate, there are some cases when we will generate DefaultImpls class that are not covered: - Inherited default implementations - Annotated members In these cases IDE will report an error when in fact code compiles What is critical though is to be able to decide whether to build DefaultImpls light classes solely based on psi without triggering stubs calculation
30 lines
376 B
Kotlin
Vendored
30 lines
376 B
Kotlin
Vendored
package lib
|
|
|
|
interface AllAbstract {
|
|
val c: Int
|
|
fun <T> f(t: T): T
|
|
|
|
val g: Int
|
|
|
|
var g2: String
|
|
}
|
|
|
|
interface NonAbstractFun {
|
|
fun f() {
|
|
|
|
}
|
|
}
|
|
|
|
interface NonAbstractFunWithExpressionBody {
|
|
fun f() = 3
|
|
}
|
|
|
|
interface NonAbstractProperty {
|
|
val c: Int get() = 3
|
|
}
|
|
|
|
interface NonAbstractPropertyWithBody {
|
|
val c: Int get() {
|
|
return 3
|
|
}
|
|
} |