[LC] rename lightClasses/lightClasses to lightClasses/lightClassByFqName
This commit is contained in:
+87
@@ -0,0 +1,87 @@
|
||||
public final class Class /* Class*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String notNullVal;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String privateNN;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String notNullVar;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String nullableVal;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String privateN;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private java.lang.String nullableVar;
|
||||
|
||||
public java.lang.String lateInitVar;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNotNullValWithGet();// getNotNullValWithGet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNotNullVarWithGetSet();// getNotNullVarWithGetSet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNullableValWithGet();// getNullableValWithGet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNullableVarWithGetSet();// getNullableVarWithGetSet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String notNullWithN();// notNullWithN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String nullableWithNN();// nullableWithNN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getLateInitVar();// getLateInitVar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getNotNullVal();// getNotNullVal()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getNotNullVar();// getNotNullVar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String notNull(@org.jetbrains.annotations.NotNull() java.lang.String);// notNull(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String notNullWithNN();// notNullWithNN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final void setNullableVarWithGetSet(@org.jetbrains.annotations.Nullable() java.lang.String);// setNullableVarWithGetSet(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNullableVal();// getNullableVal()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNullableVar();// getNullableVar()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String nullable(@org.jetbrains.annotations.Nullable() java.lang.String);// nullable(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String nullableWithN();// nullableWithN()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final void setNotNullVarWithGetSet(@org.jetbrains.annotations.NotNull() java.lang.String);// setNotNullVarWithGetSet(java.lang.String)
|
||||
|
||||
public Class();// .ctor()
|
||||
|
||||
public final void setLateInitVar(@org.jetbrains.annotations.NotNull() java.lang.String);// setLateInitVar(java.lang.String)
|
||||
|
||||
public final void setNotNullVar(@org.jetbrains.annotations.NotNull() java.lang.String);// setNotNullVar(java.lang.String)
|
||||
|
||||
public final void setNullableVar(@org.jetbrains.annotations.Nullable() java.lang.String);// setNullableVar(java.lang.String)
|
||||
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
// Class
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
class Class {
|
||||
fun notNull(a: String): String = ""
|
||||
fun nullable(a: String?): String? = ""
|
||||
|
||||
@NotNull fun notNullWithNN(): String = ""
|
||||
@Nullable fun notNullWithN(): String = ""
|
||||
|
||||
@Nullable fun nullableWithN(): String? = ""
|
||||
@NotNull fun nullableWithNN(): String? = ""
|
||||
|
||||
val nullableVal: String? = { "" }()
|
||||
var nullableVar: String? = { "" }()
|
||||
val notNullVal: String = { "" }()
|
||||
var notNullVar: String = { "" }()
|
||||
|
||||
val notNullValWithGet: String
|
||||
@[Nullable] get() = ""
|
||||
|
||||
var notNullVarWithGetSet: String
|
||||
@[Nullable] get() = ""
|
||||
@[Nullable] set(v) {}
|
||||
|
||||
val nullableValWithGet: String?
|
||||
@[NotNull] get() = ""
|
||||
|
||||
var nullableVarWithGetSet: String?
|
||||
@[NotNull] get() = ""
|
||||
@[NotNull] set(v) {}
|
||||
|
||||
private val privateNN: String = { "" }()
|
||||
private val privateN: String? = { "" }()
|
||||
|
||||
lateinit var lateInitVar: String
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
public final class ClassObjectField /* ClassObjectField*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final ClassObjectField.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.lang.String x;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.lang.String y;
|
||||
|
||||
public ClassObjectField();// .ctor()
|
||||
|
||||
|
||||
public static final class Companion /* ClassObjectField.Companion*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getX();// getX()
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
}}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// ClassObjectField
|
||||
|
||||
class ClassObjectField {
|
||||
companion object {
|
||||
val x: String? = { "" }()
|
||||
private val y: String? = { "" }()
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class ClassWithConstructor /* ClassWithConstructor*/ {
|
||||
public ClassWithConstructor(@org.jetbrains.annotations.Nullable() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, java.lang.String)
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// ClassWithConstructor
|
||||
|
||||
class ClassWithConstructor(
|
||||
nullable: String?,
|
||||
notNull: String
|
||||
)
|
||||
|
||||
// FIR_COMPARISON
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public final class ClassWithConstructorAndProperties /* ClassWithConstructorAndProperties*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String notNull;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private final java.lang.String nullable;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getNotNull();// getNotNull()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.String getNullable();// getNullable()
|
||||
|
||||
public ClassWithConstructorAndProperties(@org.jetbrains.annotations.Nullable() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String, java.lang.String)
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// ClassWithConstructorAndProperties
|
||||
|
||||
class ClassWithConstructorAndProperties(
|
||||
val nullable: String?,
|
||||
val notNull: String
|
||||
)
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+80
@@ -0,0 +1,80 @@
|
||||
public final class FileFacadeKt /* FileFacadeKt*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static final java.lang.String notNullVal;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static final java.lang.String privateNn;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String notNullVar;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.lang.String nullableVal;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.lang.String privateN;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static java.lang.String nullableVar;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String getNotNullValWithGet();// getNotNullValWithGet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String getNotNullVarWithGetSet();// getNotNullVarWithGetSet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String getNullableValWithGet();// getNullableValWithGet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String getNullableVarWithGetSet();// getNullableVarWithGetSet()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String notNullWithN();// notNullWithN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String nullableWithNN();// nullableWithNN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getNotNullVal();// getNotNullVal()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String getNotNullVar();// getNotNullVar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String notNull(@org.jetbrains.annotations.NotNull() java.lang.String);// notNull(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String notNullWithNN();// notNullWithNN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final void setNullableVarWithGetSet(@org.jetbrains.annotations.Nullable() java.lang.String);// setNullableVarWithGetSet(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String getNullableVal();// getNullableVal()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String getNullableVar();// getNullableVar()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String nullable(@org.jetbrains.annotations.Nullable() java.lang.String);// nullable(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String nullableWithN();// nullableWithN()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final void setNotNullVarWithGetSet(@org.jetbrains.annotations.NotNull() java.lang.String);// setNotNullVarWithGetSet(java.lang.String)
|
||||
|
||||
private static final java.lang.String privateFun(java.lang.String, java.lang.String);// privateFun(java.lang.String, java.lang.String)
|
||||
|
||||
public static final void setNotNullVar(@org.jetbrains.annotations.NotNull() java.lang.String);// setNotNullVar(java.lang.String)
|
||||
|
||||
public static final void setNullableVar(@org.jetbrains.annotations.Nullable() java.lang.String);// setNullableVar(java.lang.String)
|
||||
|
||||
}
|
||||
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
// FileFacadeKt
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
fun notNull(a: String): String = ""
|
||||
fun nullable(a: String?): String? = ""
|
||||
|
||||
@NotNull fun notNullWithNN(): String = ""
|
||||
@Nullable fun notNullWithN(): String = ""
|
||||
|
||||
@Nullable fun nullableWithN(): String? = ""
|
||||
@NotNull fun nullableWithNN(): String? = ""
|
||||
|
||||
val nullableVal: String? = { "" }()
|
||||
var nullableVar: String? = { "" }()
|
||||
val notNullVal: String = { "" }()
|
||||
var notNullVar: String = { "" }()
|
||||
|
||||
val notNullValWithGet: String
|
||||
@[Nullable] get() = ""
|
||||
|
||||
var notNullVarWithGetSet: String
|
||||
@[Nullable] get() = ""
|
||||
@[Nullable] set(v) {}
|
||||
|
||||
val nullableValWithGet: String?
|
||||
@[NotNull] get() = ""
|
||||
|
||||
var nullableVarWithGetSet: String?
|
||||
@NotNull get() = ""
|
||||
@NotNull set(v) {}
|
||||
|
||||
private val privateNn: String = { "" }()
|
||||
private val privateN: String? = { "" }()
|
||||
private fun privateFun(a: String, b: String?): String? = null
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
public abstract interface Generic /* Generic*/<N, NN> {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract NN b(@org.jetbrains.annotations.NotNull() NN);// b(NN)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract N a1(@org.jetbrains.annotations.Nullable() N);// a1(N)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract NN b1(@org.jetbrains.annotations.Nullable() NN);// b1(NN)
|
||||
|
||||
public abstract N a(N);// a(N)
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// Generic
|
||||
|
||||
interface Generic<N, NN: Any> {
|
||||
fun a(n: N): N
|
||||
fun b(nn: NN): NN
|
||||
|
||||
fun a1(n: N?): N?
|
||||
fun b1(nn: NN?): NN?
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public final class C /* C*/ implements Tr {
|
||||
private final int v;
|
||||
|
||||
@java.lang.Override()
|
||||
public int foo();// foo()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
public int getV();// getV()
|
||||
|
||||
}
|
||||
compiler/testData/asJava/lightClasses/lightClassByFqName/nullabilityAnnotations/IntOverridesAny.java
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
public final class C /* C*/ implements Tr {
|
||||
private final int v;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.Integer foo();// foo()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.Integer getV();// getV()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// C
|
||||
|
||||
interface Tr {
|
||||
fun foo(): Any
|
||||
val v: Any
|
||||
}
|
||||
|
||||
class C: Tr {
|
||||
override fun foo() = 1
|
||||
override val v = { 1 }()
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
public final class C /* C*/ {
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.String);// foo(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.String);// foo(java.lang.String, java.lang.String, java.lang.String)
|
||||
|
||||
@kotlin.jvm.JvmOverloads()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String foo(@org.jetbrains.annotations.NotNull() java.lang.String, @org.jetbrains.annotations.Nullable() java.lang.String);// foo(java.lang.String, java.lang.String)
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// C
|
||||
// WITH_STDLIB
|
||||
|
||||
class C {
|
||||
@[kotlin.jvm.JvmOverloads] public fun foo(o: String = "O", o1: String, o3: String = "K", o4: String?): String {
|
||||
return "a"
|
||||
}
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public final class NullableUnitReturnKt /* NullableUnitReturnKt*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final kotlin.Unit foo();// foo()
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// NullableUnitReturnKt
|
||||
|
||||
fun foo(): Unit? = null
|
||||
|
||||
// FIR_COMPARISON
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public final class C /* C*/ implements Base {
|
||||
@java.lang.Override()
|
||||
public void foo();// foo()
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public final class C /* C*/ implements Base {
|
||||
public C();// .ctor()
|
||||
|
||||
public void foo();// foo()
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// C
|
||||
|
||||
interface Base {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
class C : Base {
|
||||
override fun foo(): Unit {}
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
public final class PlatformTypes /* PlatformTypes*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.util.List<java.lang.String> bothNotNull();// bothNotNull()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.util.List<java.lang.String> bothNullable();// bothNullable()
|
||||
|
||||
public PlatformTypes();// .ctor()
|
||||
|
||||
public final java.lang.String simplyPlatform();// simplyPlatform()
|
||||
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// PlatformTypes
|
||||
|
||||
import java.util.Collections
|
||||
|
||||
class PlatformTypes {
|
||||
fun simplyPlatform() = Collections.singletonList("")[0]
|
||||
fun bothNullable() = Collections.emptyList<String>() ?: null
|
||||
fun bothNotNull() = Collections.emptyList<String>()!!
|
||||
}
|
||||
|
||||
Vendored
+44
@@ -0,0 +1,44 @@
|
||||
public abstract interface Primitives /* Primitives*/ {
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Boolean getNullableBool();// getNullableBool()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Byte getNullableByte();// getNullableByte()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Character getNullableChar();// getNullableChar()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Double getNullableDouble();// getNullableDouble()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Float getNullableFloat();// getNullableFloat()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Integer getNullableInt();// getNullableInt()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Long getNullableLong();// getNullableLong()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.Short getNullableShort();// getNullableShort()
|
||||
|
||||
public abstract boolean getBool();// getBool()
|
||||
|
||||
public abstract byte getByte();// getByte()
|
||||
|
||||
public abstract char getChar();// getChar()
|
||||
|
||||
public abstract double getDouble();// getDouble()
|
||||
|
||||
public abstract float getFloat();// getFloat()
|
||||
|
||||
public abstract int getInt();// getInt()
|
||||
|
||||
public abstract int int(int);// int(int)
|
||||
|
||||
public abstract long getLong();// getLong()
|
||||
|
||||
public abstract short getShort();// getShort()
|
||||
|
||||
}
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
// Primitives
|
||||
|
||||
interface Primitives {
|
||||
fun int(i: Int): Int
|
||||
|
||||
val nullableBool: Boolean?
|
||||
val nullableByte: Byte?
|
||||
val nullableShort: Short?
|
||||
val nullableChar: Char?
|
||||
val nullableInt: Int?
|
||||
val nullableLong: Long?
|
||||
val nullableFloat: Float?
|
||||
val nullableDouble: Double?
|
||||
|
||||
val bool: Boolean
|
||||
val byte: Byte
|
||||
val short: Short
|
||||
val char: Char
|
||||
val int: Int
|
||||
val long: Long
|
||||
val float: Float
|
||||
val double: Double
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
public final class PrivateInClass /* PrivateInClass*/ {
|
||||
private PrivateInClass(java.lang.String);// .ctor(java.lang.String)
|
||||
|
||||
private final java.lang.String bar(java.lang.String, java.lang.String);// bar(java.lang.String, java.lang.String)
|
||||
|
||||
private final java.lang.String getN();// getN()
|
||||
|
||||
private final java.lang.String getNn();// getNn()
|
||||
|
||||
private final void setNn(java.lang.String);// setNn(java.lang.String)
|
||||
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// PrivateInClass
|
||||
|
||||
class PrivateInClass private constructor (g: String?) {
|
||||
private var nn: String
|
||||
get() = ""
|
||||
set(value) {}
|
||||
private val n: String?
|
||||
get() = ""
|
||||
private fun bar(a: String, b: String?): String? = null
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
public final class Synthetic /* Synthetic*/ {
|
||||
private final void foo();// foo()
|
||||
|
||||
public Synthetic();// .ctor()
|
||||
|
||||
|
||||
public final class Inner /* Synthetic.Inner*/ {
|
||||
public Inner();// .ctor()
|
||||
|
||||
public final void test();// test()
|
||||
|
||||
}}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// Synthetic
|
||||
|
||||
class Synthetic {
|
||||
inner class Inner {
|
||||
fun test() {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
private fun foo() {}
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
public abstract interface Trait /* Trait*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.String notNullWithN();// notNullWithN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.String nullableWithNN();// nullableWithNN()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.lang.String getNotNullVal();// getNotNullVal()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.lang.String getNotNullVar();// getNotNullVar()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.lang.String notNull(@org.jetbrains.annotations.NotNull() java.lang.String);// notNull(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public abstract java.lang.String notNullWithNN();// notNullWithNN()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.String getNullableVal();// getNullableVal()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.String getNullableVar();// getNullableVar()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.String nullable(@org.jetbrains.annotations.Nullable() java.lang.String);// nullable(java.lang.String)
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public abstract java.lang.String nullableWithN();// nullableWithN()
|
||||
|
||||
public abstract void setNotNullVar(@org.jetbrains.annotations.NotNull() java.lang.String);// setNotNullVar(java.lang.String)
|
||||
|
||||
public abstract void setNullableVar(@org.jetbrains.annotations.Nullable() java.lang.String);// setNullableVar(java.lang.String)
|
||||
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// Trait
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
interface Trait {
|
||||
fun notNull(p: String): String
|
||||
fun nullable(p: String?): String?
|
||||
|
||||
@NotNull fun notNullWithNN(): String
|
||||
@Nullable fun notNullWithN(): String
|
||||
|
||||
@Nullable fun `nullableWithN`(): String?
|
||||
@NotNull fun nullableWithNN(): String?
|
||||
|
||||
val nullableVal: String?
|
||||
var nullableVar: String?
|
||||
val notNullVal: String
|
||||
var notNullVar: String
|
||||
}
|
||||
|
||||
// FIR_COMPARISON
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public final class C /* C*/ implements Base<kotlin.Unit> {
|
||||
@java.lang.Override()
|
||||
public void foo(@org.jetbrains.annotations.NotNull() kotlin.Unit);// foo(kotlin.Unit)
|
||||
|
||||
public C();// .ctor()
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public final class C /* C*/ implements Base<kotlin.Unit> {
|
||||
public C();// .ctor()
|
||||
|
||||
public void foo(@org.jetbrains.annotations.NotNull() kotlin.Unit);// foo(kotlin.Unit)
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// C
|
||||
|
||||
interface Base<T> {
|
||||
fun foo(t: T): T
|
||||
}
|
||||
|
||||
class C : Base<Unit> {
|
||||
override fun foo(t: Unit) {}
|
||||
}
|
||||
// FIR_COMPARISON
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class UnitParameterKt /* UnitParameterKt*/ {
|
||||
public static final void foo(@org.jetbrains.annotations.NotNull() kotlin.Unit);// foo(kotlin.Unit)
|
||||
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// UnitParameterKt
|
||||
|
||||
fun foo(s: Unit) {}
|
||||
|
||||
// FIR_COMPARISON
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class VoidReturnKt /* VoidReturnKt*/ {
|
||||
public static final void foo(@org.jetbrains.annotations.NotNull() java.lang.String);// foo(java.lang.String)
|
||||
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// VoidReturnKt
|
||||
|
||||
fun foo(g: String) {}
|
||||
|
||||
// FIR_COMPARISON
|
||||
Reference in New Issue
Block a user