Kapt: Never mark static methods 'default' (KT-42915)

This commit is contained in:
Yan Zhulanow
2020-10-28 13:02:14 +09:00
parent 09e1bed5c9
commit eb9b5da82b
4 changed files with 40 additions and 1 deletions
@@ -11,3 +11,10 @@ class JvmStaticTest {
const val three: Byte = 3.toByte()
const val d: Char = 'D'
}
interface FooComponent {
companion object {
@JvmStatic
fun create(context: String): String = "foo"
}
}
@@ -1,5 +1,36 @@
import java.lang.System;
@kotlin.Metadata()
public abstract interface FooComponent {
@org.jetbrains.annotations.NotNull()
public static final FooComponent.Companion Companion = null;
@org.jetbrains.annotations.NotNull()
public static java.lang.String create(@org.jetbrains.annotations.NotNull()
java.lang.String context) {
return null;
}
@kotlin.Metadata()
public static final class Companion {
@org.jetbrains.annotations.NotNull()
public final java.lang.String create(@org.jetbrains.annotations.NotNull()
java.lang.String context) {
return null;
}
private Companion() {
super();
}
}
}
////////////////////
import java.lang.System;
@kotlin.Metadata()
public final class JvmStaticTest {
public final byte three = (byte)3;