Do not generate DefaultImpls for light classes if not needed
#KT-41130 In Progress
This commit is contained in:
committed by
TeamCityServer
parent
ac6232b4ba
commit
111e54c8c1
+6
@@ -0,0 +1,6 @@
|
||||
public abstract interface KtInterface /* KtInterface*/ {
|
||||
public abstract void defaultFun();// defaultFun()
|
||||
|
||||
public abstract void withoutBody();// withoutBody()
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
// COMPILER_ARGUMENTS: -Xjvm-default=all
|
||||
|
||||
interface KtInterface {
|
||||
fun defaultFun() {
|
||||
println("default")
|
||||
}
|
||||
|
||||
fun withoutBody()
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
public abstract interface KtInterface /* KtInterface*/ {
|
||||
public abstract void defaultFun();// defaultFun()
|
||||
|
||||
public abstract void withoutBody();// withoutBody()
|
||||
|
||||
|
||||
class DefaultImpls ...
|
||||
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// CHECK_BY_JAVA_FILE
|
||||
// COMPILER_ARGUMENTS: -Xjvm-default=all-compatibility
|
||||
|
||||
interface KtInterface {
|
||||
fun defaultFun() {
|
||||
println("default")
|
||||
}
|
||||
|
||||
fun withoutBody()
|
||||
}
|
||||
Reference in New Issue
Block a user