Add ClassBuilderMode.KAPT3 tests
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
data class User(val name: String, val age: Int)
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
@kotlin.Metadata
|
||||
public final class User {
|
||||
private final field age: int
|
||||
private final @org.jetbrains.annotations.NotNull field name: java.lang.String
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): void
|
||||
public final @org.jetbrains.annotations.NotNull method component1(): java.lang.String
|
||||
public final method component2(): int
|
||||
public synthetic static @org.jetbrains.annotations.NotNull method copy$default(p0: User, p1: java.lang.String, p2: int, p3: int, p4: java.lang.Object): User
|
||||
public final @org.jetbrains.annotations.NotNull method copy(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): User
|
||||
public method equals(p0: java.lang.Object): boolean
|
||||
public final method getAge(): int
|
||||
public final @org.jetbrains.annotations.NotNull method getName(): java.lang.String
|
||||
public method hashCode(): int
|
||||
public method toString(): java.lang.String
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
@Suppress("UNRESOLVED_REFERENCE")
|
||||
class A {
|
||||
val a: ABC = null
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
@kotlin.Metadata
|
||||
@kotlin.Suppress
|
||||
public final class A {
|
||||
private final @org.jetbrains.annotations.NotNull field a: error.NonExistentClass
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getA(): error.NonExistentClass
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
package test
|
||||
|
||||
class TopLevel {
|
||||
companion object {
|
||||
fun a() {}
|
||||
|
||||
@JvmStatic
|
||||
val q = "A"
|
||||
}
|
||||
|
||||
fun b() {}
|
||||
|
||||
val x: String
|
||||
|
||||
val y = 5
|
||||
|
||||
class NestedClass {
|
||||
inner class NestedInnerClass
|
||||
}
|
||||
|
||||
object InnerObject
|
||||
|
||||
interface InnerInterface
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
@kotlin.Metadata
|
||||
public final class test/TopLevel {
|
||||
public final static field Companion: test.TopLevel.Companion
|
||||
private final static @org.jetbrains.annotations.NotNull field q: java.lang.String
|
||||
private final @org.jetbrains.annotations.NotNull field x: java.lang.String
|
||||
private final field y: int
|
||||
inner class test/TopLevel/Companion
|
||||
inner class test/TopLevel/InnerInterface
|
||||
inner class test/TopLevel/InnerObject
|
||||
inner class test/TopLevel/NestedClass
|
||||
public method <init>(): void
|
||||
public final method b(): void
|
||||
public final static @org.jetbrains.annotations.NotNull method getQ(): java.lang.String
|
||||
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String
|
||||
public final method getY(): int
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class test/TopLevel/Companion {
|
||||
inner class test/TopLevel/Companion
|
||||
private method <init>(): void
|
||||
public final method a(): void
|
||||
public final @org.jetbrains.annotations.NotNull method getQ(): java.lang.String
|
||||
public synthetic deprecated static @kotlin.jvm.JvmStatic method q$annotations(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface test/TopLevel/InnerInterface {
|
||||
inner class test/TopLevel/InnerInterface
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class test/TopLevel/InnerObject {
|
||||
public final static field INSTANCE: test.TopLevel.InnerObject
|
||||
inner class test/TopLevel/InnerObject
|
||||
private method <init>(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class test/TopLevel/NestedClass {
|
||||
inner class test/TopLevel/NestedClass
|
||||
inner class test/TopLevel/NestedClass/NestedInnerClass
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class test/TopLevel/NestedClass/NestedInnerClass {
|
||||
synthetic final field this$0: test.TopLevel.NestedClass
|
||||
inner class test/TopLevel/NestedClass
|
||||
inner class test/TopLevel/NestedClass/NestedInnerClass
|
||||
public method <init>(p0: test.TopLevel.NestedClass): void
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
interface A {
|
||||
fun a() {}
|
||||
fun b()
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun b()
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
@kotlin.Metadata
|
||||
public interface A {
|
||||
inner class A/DefaultImpls
|
||||
public abstract method a(): void
|
||||
public abstract method b(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class A/DefaultImpls {
|
||||
inner class A/DefaultImpls
|
||||
public static method a(p0: A): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface B {
|
||||
public abstract method b(): void
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test {
|
||||
@JvmOverloads
|
||||
fun b(s: String = "A", i: Int = 5, c: Char = 'c') {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
@kotlin.Metadata
|
||||
public final class Test {
|
||||
public method <init>(): void
|
||||
public synthetic static @kotlin.jvm.JvmOverloads method b$default(p0: Test, p1: java.lang.String, p2: int, p3: char, p4: int, p5: java.lang.Object): void
|
||||
public final @kotlin.jvm.JvmOverloads @synthetic.kotlin.jvm.GeneratedByJvmOverloads method b(): void
|
||||
public final @kotlin.jvm.JvmOverloads @synthetic.kotlin.jvm.GeneratedByJvmOverloads method b(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
public final @kotlin.jvm.JvmOverloads @synthetic.kotlin.jvm.GeneratedByJvmOverloads method b(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): void
|
||||
public final @kotlin.jvm.JvmOverloads method b(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int, p2: char): void
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun a() = run {
|
||||
""
|
||||
}
|
||||
|
||||
fun <R> run(block: () -> R): R = block()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
@kotlin.Metadata
|
||||
public final class LambdasKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method a(): java.lang.String
|
||||
public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Simple
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
@kotlin.Metadata
|
||||
public final class Simple {
|
||||
public method <init>(): void
|
||||
}
|
||||
Reference in New Issue
Block a user