Kapt tests: minor, add some cases to properties.kt
To check that boolean "is" prefix is treated correctly, and Unit return type is not translated to void. `@Deprecated` annotations are added just so that the `$annotations` methods would also be generated.
This commit is contained in:
committed by
Space Team
parent
28e232f54f
commit
e700a38a87
@@ -0,0 +1,70 @@
|
|||||||
|
public final class Test {
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final java.lang.String simple = "123";
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final java.lang.String inferType = null;
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final java.lang.String getter = "O";
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final java.lang.Class<?> constJavaClassValue = null;
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private final kotlin.reflect.KClass<?> constClassValue = null;
|
||||||
|
private boolean isBoolean = false;
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
private kotlin.Unit unit;
|
||||||
|
|
||||||
|
public Test() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final java.lang.String getSimple() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final java.lang.String getInferType() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final java.lang.String getGetter() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final java.lang.Class<?> getConstJavaClassValue() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final kotlin.reflect.KClass<?> getConstClassValue() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final boolean isBoolean() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@kotlin.Deprecated(message = "")
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public static void isBoolean$annotations() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public final void setBoolean(boolean p0) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
public final kotlin.Unit getUnit() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@kotlin.Deprecated(message = "")
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public static void getUnit$annotations() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public final void setUnit(@org.jetbrains.annotations.NotNull()
|
||||||
|
kotlin.Unit p0) {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,4 +11,10 @@ class Test {
|
|||||||
|
|
||||||
val constJavaClassValue: Class<*> = String::class.java
|
val constJavaClassValue: Class<*> = String::class.java
|
||||||
val constClassValue: kotlin.reflect.KClass<*> = (String::class)
|
val constClassValue: kotlin.reflect.KClass<*> = (String::class)
|
||||||
|
|
||||||
|
@Deprecated("")
|
||||||
|
var isBoolean = false
|
||||||
|
|
||||||
|
@Deprecated("")
|
||||||
|
var unit = Unit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ public final class Test {
|
|||||||
private final java.lang.Class<?> constJavaClassValue = null;
|
private final java.lang.Class<?> constJavaClassValue = null;
|
||||||
@org.jetbrains.annotations.NotNull()
|
@org.jetbrains.annotations.NotNull()
|
||||||
private final kotlin.reflect.KClass<?> constClassValue = null;
|
private final kotlin.reflect.KClass<?> constClassValue = null;
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
private boolean isBoolean = false;
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
private kotlin.Unit unit;
|
||||||
|
|
||||||
public Test() {
|
public Test() {
|
||||||
super();
|
super();
|
||||||
@@ -38,4 +43,32 @@ public final class Test {
|
|||||||
public final kotlin.reflect.KClass<?> getConstClassValue() {
|
public final kotlin.reflect.KClass<?> getConstClassValue() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public final boolean isBoolean() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public static void isBoolean$annotations() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public final void setBoolean(boolean p0) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@org.jetbrains.annotations.NotNull()
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public final kotlin.Unit getUnit() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public static void getUnit$annotations() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Deprecated()
|
||||||
|
public final void setUnit(@org.jetbrains.annotations.NotNull()
|
||||||
|
kotlin.Unit p0) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user