diff --git a/compiler/testData/codegen/asmLike/typeAnnotations/property.txt b/compiler/testData/codegen/asmLike/typeAnnotations/property.txt index 5e14aac1f8d..8769590a0ed 100644 --- a/compiler/testData/codegen/asmLike/typeAnnotations/property.txt +++ b/compiler/testData/codegen/asmLike/typeAnnotations/property.txt @@ -11,7 +11,7 @@ public final class foo/Kotlin$Companion : java/lang/Object { @Lfoo/TypeAnn;([name="1"]) : METHOD_RETURN, null @Lfoo/TypeAnnBinary;([]) : METHOD_RETURN, null // invisible - public static void jvmStatic$annotations() + public static void getJvmStatic$annotations() public final void setCompanionVarProperty(java.lang.String ) @Lfoo/TypeAnn;([name="1"]) : METHOD_FORMAL_PARAMETER 0, null diff --git a/compiler/testData/codegen/bytecodeListing/companionObjectVisibility_lv13.txt b/compiler/testData/codegen/bytecodeListing/companionObjectVisibility_lv13.txt index f5e9dbd9a1c..f27d67b748c 100644 --- a/compiler/testData/codegen/bytecodeListing/companionObjectVisibility_lv13.txt +++ b/compiler/testData/codegen/bytecodeListing/companionObjectVisibility_lv13.txt @@ -22,7 +22,7 @@ final class TestPrivateCompanionInClass$Companion { @kotlin.Metadata public final class TestPrivateCompanionInClass { - public deprecated final static @java.lang.Deprecated field Companion: TestPrivateCompanionInClass$Companion + private final static field Companion: TestPrivateCompanionInClass$Companion inner class TestPrivateCompanionInClass$Companion static method (): void public method (): void @@ -38,7 +38,7 @@ final class TestPrivateCompanionInInterface$Companion { @kotlin.Metadata public interface TestPrivateCompanionInInterface { - public deprecated final static @java.lang.Deprecated field Companion: TestPrivateCompanionInInterface$Companion + public synthetic final static field Companion: TestPrivateCompanionInInterface$Companion inner class TestPrivateCompanionInInterface$Companion static method (): void } @@ -52,7 +52,7 @@ public final class TestProtectedCompanionInClass$Companion { @kotlin.Metadata public class TestProtectedCompanionInClass { - public deprecated final static @java.lang.Deprecated field Companion: TestProtectedCompanionInClass$Companion + protected final static field Companion: TestProtectedCompanionInClass$Companion inner class TestProtectedCompanionInClass$Companion static method (): void public method (): void diff --git a/compiler/testData/diagnostics/testsWithJsStdLib/classLiteral/arrays_before.kt b/compiler/testData/diagnostics/testsWithJsStdLib/classLiteral/arrays_before.kt index fd965ff4f25..1c817555ab6 100644 --- a/compiler/testData/diagnostics/testsWithJsStdLib/classLiteral/arrays_before.kt +++ b/compiler/testData/diagnostics/testsWithJsStdLib/classLiteral/arrays_before.kt @@ -1,3 +1,5 @@ +// !LANGUAGE: -BareArrayClassLiteral -ProhibitGenericArrayClassLiteral + val a01 = Array::class val a02 = Array<Array>::class val a03 = Array::class diff --git a/compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/notFirstStatement.kt b/compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/notFirstStatement.kt index c6e1e8aa6b3..c43696bc144 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/notFirstStatement.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/notFirstStatement.kt @@ -30,7 +30,7 @@ inline fun case_2(block: () -> Unit) = Unit) { class Class { fun innerFun(block2: () -> Unit) { - contract { + contract { callsInPlace(block2, InvocationKind.EXACTLY_ONCE) } block2() diff --git a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.fir.txt b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.fir.txt index 8884cb73a9f..b63020fa251 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.fir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.fir.txt @@ -48,46 +48,3 @@ FILE fqName: fileName:/classLiteralInAnnotation.kt $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - FUN name:test2 visibility:public modality:FINAL () returnType:. [inline] - TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test2 (): . [inline] declared in ' - BLOCK type=.test2. origin=OBJECT_LITERAL - CLASS OBJECT name: modality:FINAL visibility:local superTypes:[kotlin.Any] - annotations: - A(klass = CLASS_REFERENCE 'TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]' type=kotlin.reflect.KClass.test2>) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test2. - CONSTRUCTOR visibility:private <> () returnType:kotlin.Any [primary] - BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' - INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name: modality:FINAL visibility:local superTypes:[kotlin.Any]' - CONSTRUCTOR_CALL 'private constructor () [primary] declared in .test2.' type=.test2. origin=null - PROPERTY name:test3 visibility:public modality:FINAL [var] - FUN name: visibility:public modality:FINAL <> () returnType:. - correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [var] - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): . declared in ' - BLOCK type=.. origin=OBJECT_LITERAL - CLASS OBJECT name: modality:FINAL visibility:local superTypes:[kotlin.Any] - annotations: - A(klass = CLASS_REFERENCE 'TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]' type=kotlin.reflect.KClass>) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.. - CONSTRUCTOR visibility:private <> () returnType:kotlin.Any [primary] - BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' - INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name: modality:FINAL visibility:local superTypes:[kotlin.Any]' - CONSTRUCTOR_CALL 'private constructor () [primary] declared in ..' type=.. origin=null - FUN name: visibility:public modality:FINAL <> (v:.) returnType:kotlin.Unit - correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [var] - VALUE_PARAMETER name:v index:0 type:. - BLOCK_BODY - BLOCK type=.. origin=OBJECT_LITERAL - CLASS OBJECT name: modality:FINAL visibility:local superTypes:[kotlin.Any] - annotations: - A(klass = CLASS_REFERENCE 'TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]' type=kotlin.reflect.KClass>) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.. - CONSTRUCTOR visibility:private <> () returnType:kotlin.Any [primary] - BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' - INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name: modality:FINAL visibility:local superTypes:[kotlin.Any]' - CONSTRUCTOR_CALL 'private constructor () [primary] declared in ..' type=.. origin=null diff --git a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt index 432f962eac9..ac36ee4a594 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt +++ b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.kt @@ -5,10 +5,3 @@ annotation class A(val klass: KClass<*>) class C @A(C::class) fun test1() {} - -inline fun test2() = - @A(T::class) object {} - -inline var T.test3 - get() = @A(T::class) object {} - set(v) { @A(T::class) object {} } \ No newline at end of file diff --git a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.txt b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.txt index 884b89d7bef..b57cf883c7f 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.txt +++ b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.txt @@ -50,90 +50,3 @@ FILE fqName: fileName:/classLiteralInAnnotation.kt annotations: A(klass = CLASS_REFERENCE 'CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<.C>) BLOCK_BODY - FUN name:test2 visibility:public modality:FINAL () returnType:kotlin.Any [inline] - TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Any [inline] declared in ' - BLOCK type=.test2..test2> origin=OBJECT_LITERAL - CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any] - annotations: - A(klass = CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public superTypes:[]' type=kotlin.reflect.KClass) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test2..test2> - CONSTRUCTOR visibility:public <> () returnType:.test2..test2> [primary] - BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' - INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' - FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] - overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - VALUE_PARAMETER name:other index:0 type:kotlin.Any? - FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] - overridden: - public open fun hashCode (): kotlin.Int declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] - overridden: - public open fun toString (): kotlin.String declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test2.' type=.test2..test2> origin=OBJECT_LITERAL - PROPERTY name:test3 visibility:public modality:FINAL [var] - FUN name: visibility:public modality:FINAL ($receiver:T of .) returnType:kotlin.Any [inline] - correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [var] - TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] - $receiver: VALUE_PARAMETER name: type:T of . - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any [inline] declared in ' - BLOCK type=.. origin=OBJECT_LITERAL - CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any] - annotations: - A(klass = CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public superTypes:[]' type=kotlin.reflect.KClass) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.. - CONSTRUCTOR visibility:public <> () returnType:.. [primary] - BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' - INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' - FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] - overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - VALUE_PARAMETER name:other index:0 type:kotlin.Any? - FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] - overridden: - public open fun hashCode (): kotlin.Int declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] - overridden: - public open fun toString (): kotlin.String declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in ..' type=.. origin=OBJECT_LITERAL - FUN name: visibility:public modality:FINAL ($receiver:T of ., v:kotlin.Any) returnType:kotlin.Unit [inline] - correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [var] - TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] - $receiver: VALUE_PARAMETER name: type:T of . - VALUE_PARAMETER name:v index:0 type:kotlin.Any - BLOCK_BODY - TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - BLOCK type=.. origin=OBJECT_LITERAL - CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any] - annotations: - A(klass = CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public superTypes:[]' type=kotlin.reflect.KClass) - $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.. - CONSTRUCTOR visibility:public <> () returnType:.. [primary] - BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' - INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' - FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] - overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - VALUE_PARAMETER name:other index:0 type:kotlin.Any? - FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] - overridden: - public open fun hashCode (): kotlin.Int declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] - overridden: - public open fun toString (): kotlin.String declared in kotlin.Any - $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in ..' type=.. origin=OBJECT_LITERAL diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg/1.kt index 3621720107e..c77a02bd32b 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg/1.kt @@ -18,57 +18,57 @@ annotation class Case12_1 annotation class Case12_2 // TESTCASE NUMBER: 1 -annotation class Case1 @JvmOverloads constructor(val x: Int) +annotation class Case1 @JvmOverloads constructor(val x: Int) // TESTCASE NUMBER: 2 -annotation class Case2 @[Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 JvmOverloads Case12_1] constructor(x: Int = 10) +annotation class Case2 @[Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 JvmOverloads Case12_1] constructor(x: Int = 10) // TESTCASE NUMBER: 3 -annotation class Case3 @Case12_2 @Case12_1 @Case12_2 @`JvmOverloads` @Case12_2 @Case12_2 constructor(x: Int = 10) +annotation class Case3 @Case12_2 @Case12_1 @Case12_2 @`JvmOverloads` @Case12_2 @Case12_2 constructor(x: Int = 10) // TESTCASE NUMBER: 4 -annotation class Case4 @Case12_2 @[Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 JvmOverloads Case12_1] @Case12_2 @Case12_2 constructor(x: Int = 10) +annotation class Case4 @Case12_2 @[Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 Case12_2 JvmOverloads Case12_1] @Case12_2 @Case12_2 constructor(x: Int = 10) // TESTCASE NUMBER: 5 -annotation class Case5 @[JvmOverloads] constructor(val x: Int) +annotation class Case5 @[JvmOverloads] constructor(val x: Int) // TESTCASE NUMBER: 6 -annotation class Case6 @JvmOverloads constructor() +annotation class Case6 @JvmOverloads constructor() // TESTCASE NUMBER: 7 -annotation class Case7@JvmOverloads constructor() {} +annotation class Case7@JvmOverloads constructor() {} // TESTCASE NUMBER: 8 -annotation class Case8 @`JvmOverloads` constructor() +annotation class Case8 @`JvmOverloads` constructor() // TESTCASE NUMBER: 9 -annotation class Case9 @JvmOverloads constructor(val x: Int) +annotation class Case9 @JvmOverloads constructor(val x: Int) // TESTCASE NUMBER: 10 -annotation class Case10 @JvmOverloads constructor(val x: Int) +annotation class Case10 @JvmOverloads constructor(val x: Int) // TESTCASE NUMBER: 11 -annotation class Case11 > @JvmOverloads constructor(val x: Int) +annotation class Case11 > @JvmOverloads constructor(val x: Int) // TESTCASE NUMBER: 12 -annotation class Case12 @JvmOverloads constructor(val x: Int) where T: Number +annotation class Case12 @JvmOverloads constructor(val x: Int) where T: Number // TESTCASE NUMBER: 13 annotation class Case13 constructor(val x: Int) { - annotation class Case1 @JvmOverloads constructor(val x: Int) + annotation class Case1 @JvmOverloads constructor(val x: Int) } // TESTCASE NUMBER: 14 -annotation class Case14 @JvmOverloads constructor(val x: Int) { +annotation class Case14 @JvmOverloads constructor(val x: Int) { annotation class Case1 constructor(val x: Int) } // TESTCASE NUMBER: 15 object Case15 { - annotation class Case15 @JvmOverloads constructor(val x: Int) + annotation class Case15 @JvmOverloads constructor(val x: Int) } // TESTCASE NUMBER: 16 class Case16 { - annotation class Case16 @JvmOverloads constructor(val x: Int) + annotation class Case16 @JvmOverloads constructor(val x: Int) } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt index 1b5dad4abe4..59dae6b5b25 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt @@ -29,7 +29,7 @@ open class Case1 { x.get(0) x.size x.isEmpty() - x[null] + x[null] } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt index be1a98c5f9b..43d3a57e254 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt @@ -29,7 +29,7 @@ open class Case1 { x.get(0) x.size x.isEmpty() - x[null] + x[null] } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt index a43861bfe6e..79ef2e235ef 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt @@ -29,7 +29,7 @@ open class Case1 { x.get(0) x.size x.isEmpty() - x[null] + x[null] } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg/1.kt index 8b9de3de459..ecb197d77e7 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg/1.kt @@ -13,32 +13,32 @@ // TESTCASE NUMBER: 1 fun case_1() { - val x1 = 1 - var x2 = 1 + val x1 = 1 + var x2 = 1 } // TESTCASE NUMBER: 2 fun case_2() { - val x1: Int = 1 - var x2: Int = 1 + val x1: Int = 1 + var x2: Int = 1 } // TESTCASE NUMBER: 3 fun case_3() { - val x1: Map = mapOf(1 to 1) - var x2: Map = mapOf(1 to 1) + val x1: Map = mapOf(1 to 1) + var x2: Map = mapOf(1 to 1) } // TESTCASE NUMBER: 4 fun case_4() { - val y1: Number where __UNRESOLVED__: __UNRESOLVED__ = 1 - var y2: Number where __UNRESOLVED__: __UNRESOLVED__ = 1 + val y1: Number where __UNRESOLVED__: __UNRESOLVED__ = 1 + var y2: Number where __UNRESOLVED__: __UNRESOLVED__ = 1 } // TESTCASE NUMBER: 5 fun case_5() { - val __UNRESOLVED__> x1: Map = mapOf(1 to 1) - var __UNRESOLVED__> x2: Map = mapOf(1 to 1) + val __UNRESOLVED__> x1: Map = mapOf(1 to 1) + var __UNRESOLVED__> x2: Map = mapOf(1 to 1) } /* @@ -61,19 +61,19 @@ fun case_7() { // TESTCASE NUMBER: 8 fun case_8() { - val A, C : B, D : C, E : D> x1 = 1 - var A, C : B, D : C, E : D> x2 = 2 + val A, C : B, D : C, E : D> x1 = 1 + var A, C : B, D : C, E : D> x2 = 2 } // TESTCASE NUMBER: 9 -fun case_9(y: Boolean?) = when (val x = y) { +fun case_9(y: Boolean?) = when (val x = y) { true -> null false -> null null -> null } // TESTCASE NUMBER: 10 -fun case_10(x: Boolean?) = when (val x where T: suspend () -> Unit, T: Boolean = x) { +fun case_10(x: Boolean?) = when (val x where T: suspend () -> Unit, T: Boolean = x) { true -> null false -> null null -> null @@ -81,24 +81,24 @@ fun case_10(x: Boolean?) = when (val x by lazy { 1 } - var x by lazy { 1 } + val x by lazy { 1 } + var x by lazy { 1 } } // TESTCASE NUMBER: 12 fun case_12() { - val __UNRESOLVED__> x: Int - var __UNRESOLVED__> x: Int + val __UNRESOLVED__> x: Int + var __UNRESOLVED__> x: Int } // TESTCASE NUMBER: 13 fun case_13() { - val __UNRESOLVED__> x: Int where __UNRESOLVED__: __UNRESOLVED__ - var __UNRESOLVED__> x: Int where __UNRESOLVED__: __UNRESOLVED__ + val __UNRESOLVED__> x: Int where __UNRESOLVED__: __UNRESOLVED__ + var __UNRESOLVED__> x: Int where __UNRESOLVED__: __UNRESOLVED__ } // TESTCASE NUMBER: 14 fun case_14() { - val T> x1 = 1 - var T> x2 = 1 + val T> x1 = 1 + var T> x2 = 1 } diff --git a/idea/testData/checker/ExtensionFunctions.kt b/idea/testData/checker/ExtensionFunctions.kt index ad332cce69c..a61578e44f2 100644 --- a/idea/testData/checker/ExtensionFunctions.kt +++ b/idea/testData/checker/ExtensionFunctions.kt @@ -1,56 +1,56 @@ fun Int?.optint() : Unit {} val Int?.optval : Unit get() = Unit -fun T.foo(x : E, y : A) : T { +fun T.foo(x : E, y : A) : T { y.plus(1) y plus 1 y + 1.0 - this?.minus(this) + this?.minus(this) return this } class A -infix operator fun A.plus(a : Any) { +infix operator fun A.plus(a : Any) { 1.foo() - true.foo() + true.foo() - 1 + 1 } -infix operator fun A.plus(a : Int) { - 1 +infix operator fun A.plus(a : Int) { + 1 } -fun T.minus(t : T) : Int = 1 +fun T.minus(t : T) : Int = 1 fun test() { - val y = 1.abs + val y = 1.abs } val Int.abs : Int get() = if (this > 0) this else -this; -val T.foo : T +val T.foo : T fun Int.foo() = this // FILE: b.kt //package null_safety - fun parse(cmd: String): Command? { return null } + fun parse(cmd: String): Command? { return null } class Command() { // fun equals(other : Any?) : Boolean val foo : Int = 0 } - operator fun Any.equals(other : Any?) : Boolean = true - fun Any?.equals1(other : Any?) : Boolean = true - fun Any.equals2(other : Any?) : Boolean = true + operator fun Any.equals(other : Any?) : Boolean = true + fun Any?.equals1(other : Any?) : Boolean = true + fun Any.equals2(other : Any?) : Boolean = true - fun main(args: Array) { + fun main(args: Array) { System.out.print(1) @@ -64,7 +64,7 @@ fun Int.foo() = this command?.equals1(null) val c = Command() - c?.equals2(null) + c?.equals2(null) - if (command == null) 1 + if (command == null) 1 } diff --git a/idea/testData/checker/diagnosticsMessage/standaloneSamConversionIsDisabledInIDE.kt b/idea/testData/checker/diagnosticsMessage/standaloneSamConversionIsDisabledInIDE.kt index 7081d58f9c9..3c42317ad28 100644 --- a/idea/testData/checker/diagnosticsMessage/standaloneSamConversionIsDisabledInIDE.kt +++ b/idea/testData/checker/diagnosticsMessage/standaloneSamConversionIsDisabledInIDE.kt @@ -6,8 +6,8 @@ fun test(r: Runnable) { ForceSam.compare(r, r) ForceSam.compare({}, {}) - ForceSam.compare(r, {}) - ForceSam.compare({}, r) + ForceSam.compare(r, {}) + ForceSam.compare({}, r) } // Check that new inference is enabled diff --git a/idea/testData/checker/infos/SmartCastToEnum.kt b/idea/testData/checker/infos/SmartCastToEnum.kt index e6fef150c5e..4de884eeaa0 100644 --- a/idea/testData/checker/infos/SmartCastToEnum.kt +++ b/idea/testData/checker/infos/SmartCastToEnum.kt @@ -4,7 +4,7 @@ package test2 enum class En { A, B, ะก } -fun main(args: Array) { +fun main(args: Array) { val en2: Any? = En.A if (en2 is En) { when (en2) { diff --git a/idea/testData/checker/js/helloWorld.kt b/idea/testData/checker/js/helloWorld.kt index 8b2aefabcca..381417deaf1 100644 --- a/idea/testData/checker/js/helloWorld.kt +++ b/idea/testData/checker/js/helloWorld.kt @@ -1,3 +1,3 @@ -fun main(args: Array) { +fun main(args: Array) { println("Hello World") } \ No newline at end of file diff --git a/idea/testData/checker/regression/BadParseForClass.kt b/idea/testData/checker/regression/BadParseForClass.kt index 0a49f4d4d12..044ba45a627 100644 --- a/idea/testData/checker/regression/BadParseForClass.kt +++ b/idea/testData/checker/regression/BadParseForClass.kt @@ -1,6 +1,6 @@ // FIR_COMPARISON -fun main(args: Array) { +fun main(args: Array) { String.class } diff --git a/idea/testData/checker/regression/DoubleDefine.kt b/idea/testData/checker/regression/DoubleDefine.kt index a4716e628e9..722e63c336e 100644 --- a/idea/testData/checker/regression/DoubleDefine.kt +++ b/idea/testData/checker/regression/DoubleDefine.kt @@ -11,7 +11,7 @@ fun takeFirst(expr: StringBuilder): Char { fun evaluateArg(expr: CharSequence, numbers: ArrayList): Int { if (expr.length == 0) throw Exception("Syntax error: Character expected"); - val c = takeFirst(expr) + val c = takeFirst(expr) if (c >= '0' && c <= '9') { val n = c - '0' if (!numbers.contains(n)) throw Exception("You used incorrect number: " + n) @@ -32,13 +32,13 @@ fun evaluateAdd(expr: StringBuilder, numbers: ArrayList): Int { fun evaluate(expr: StringBuilder, numbers: ArrayList): Int { val lhs = evaluateAdd(expr, numbers) if (expr.length > 0) { - val c = expr.get(0) + val c = expr.get(0) expr.deleteCharAt(0) } return lhs } -fun main(args: Array) { +fun main(args: Array) { System.out.println("24 game") val numbers = ArrayList(4) val rnd = Random(); diff --git a/idea/testData/checker/regression/Jet69.kt b/idea/testData/checker/regression/Jet69.kt index 80e88d894b5..ca9801cac90 100644 --- a/idea/testData/checker/regression/Jet69.kt +++ b/idea/testData/checker/regression/Jet69.kt @@ -2,11 +2,11 @@ class Command() {} -fun parse(cmd: String): Command? { return null } +fun parse(cmd: String): Command? { return null } -fun Any.equals(other : Any?) : Boolean = this === other +fun Any.equals(other : Any?) : Boolean = this === other -fun main(args: Array) { +fun main(args: Array) { val command = parse("") - if (command == null) 1 // error on this line, but must be OK + if (command == null) 1 // error on this line, but must be OK } diff --git a/idea/testData/checker/regression/SpecififcityByReceiver.kt b/idea/testData/checker/regression/SpecififcityByReceiver.kt index 6fa40fe3a47..62833ba2ff6 100644 --- a/idea/testData/checker/regression/SpecififcityByReceiver.kt +++ b/idea/testData/checker/regression/SpecififcityByReceiver.kt @@ -1,11 +1,11 @@ // FIR_COMPARISON -fun Any.equals(other : Any?) : Boolean = true +fun Any.equals(other : Any?) : Boolean = true -fun main(args: Array) { +fun main(args: Array) { val command : Any = 1 - command?.equals(null) + command?.equals(null) command.equals(null) } \ No newline at end of file diff --git a/idea/testData/diagnosticMessage/incompatibleEnums.kt b/idea/testData/diagnosticMessage/incompatibleEnums.kt index 81c918706bb..cd299345ad4 100644 --- a/idea/testData/diagnosticMessage/incompatibleEnums.kt +++ b/idea/testData/diagnosticMessage/incompatibleEnums.kt @@ -1,5 +1,5 @@ // !DIAGNOSTICS_NUMBER: 2 -// !DIAGNOSTICS: INCOMPATIBLE_ENUM_COMPARISON +// !DIAGNOSTICS: INCOMPATIBLE_ENUM_COMPARISON_ERROR // !MESSAGE_TYPE: TEXT enum class E1 { diff --git a/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt b/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt index cfe7cbcdff2..f6b4a5458c1 100644 --- a/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt +++ b/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt @@ -1,5 +1,5 @@ // "Surround with *arrayOf(...)" "true" -// COMPILER_ARGUMENTS: -XXLanguage:+ProhibitAssigningSingleElementsToVarargsInNamedForm +// COMPILER_ARGUMENTS: -XXLanguage:+ProhibitAssigningSingleElementsToVarargsInNamedForm -XXLanguage:-AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // DISABLE-ERRORS fun anyFoo(vararg a: Any) {} diff --git a/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt.after b/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt.after index 54a1d8b0fb1..b90e2c4f149 100644 --- a/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt.after +++ b/idea/testData/quickfix/surroundWithArrayOfForNamedArgumentsToVarargs/replaceForbiddenAssigningIntoArrayCall.kt.after @@ -1,5 +1,5 @@ // "Surround with *arrayOf(...)" "true" -// COMPILER_ARGUMENTS: -XXLanguage:+ProhibitAssigningSingleElementsToVarargsInNamedForm +// COMPILER_ARGUMENTS: -XXLanguage:+ProhibitAssigningSingleElementsToVarargsInNamedForm -XXLanguage:-AllowAssigningArrayElementsToVarargsInNamedFormForFunctions // DISABLE-ERRORS fun anyFoo(vararg a: Any) {} diff --git a/js/js.translator/testData/box/inlineMultiFile/builders.kt b/js/js.translator/testData/box/inlineMultiFile/builders.kt index 6eca13a2a58..d44a201dd05 100644 --- a/js/js.translator/testData/box/inlineMultiFile/builders.kt +++ b/js/js.translator/testData/box/inlineMultiFile/builders.kt @@ -206,7 +206,7 @@ abstract class Tag(val name: String) : Element() { val children = ArrayList() val attributes = HashMap() - inline protected fun initTag(tag: T, init: T.() -> Unit): T { + inline fun initTag(tag: T, init: T.() -> Unit): T { tag.init() children.add(tag) return tag diff --git a/js/js.translator/testData/box/inlineMultiFile/buildersAndLambdaCapturing.kt b/js/js.translator/testData/box/inlineMultiFile/buildersAndLambdaCapturing.kt index 640c648ec6c..817e5166ab5 100644 --- a/js/js.translator/testData/box/inlineMultiFile/buildersAndLambdaCapturing.kt +++ b/js/js.translator/testData/box/inlineMultiFile/buildersAndLambdaCapturing.kt @@ -210,7 +210,7 @@ abstract class Tag(val name: String) : Element() { val children = ArrayList() val attributes = HashMap() - inline protected fun initTag(tag: T, init: T.() -> Unit): T { + inline fun initTag(tag: T, init: T.() -> Unit): T { tag.init() children.add(tag) return tag diff --git a/js/js.translator/testData/box/reflection/primitives.kt b/js/js.translator/testData/box/reflection/primitives.kt index d43d1b7b9cb..3252674a047 100644 --- a/js/js.translator/testData/box/reflection/primitives.kt +++ b/js/js.translator/testData/box/reflection/primitives.kt @@ -6,7 +6,7 @@ fun box(): String { check(js("String"), "String", String::class) check(js("Boolean"), "Boolean", Boolean::class) check(js("Error"), "Throwable", Throwable::class) - check(js("Array"), "Array", Array::class) + check(js("Array"), "Array", Array::class) check(js("Function"), "Function0", Function0::class) check(js("Function"), "Function1", Function1::class) diff --git a/libraries/tools/kotlin-gradle-plugin-api/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinCommonOptions.kt b/libraries/tools/kotlin-gradle-plugin-api/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinCommonOptions.kt index b3e3c02a4c6..35be1b514b2 100644 --- a/libraries/tools/kotlin-gradle-plugin-api/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinCommonOptions.kt +++ b/libraries/tools/kotlin-gradle-plugin-api/src/main/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinCommonOptions.kt @@ -6,14 +6,14 @@ interface KotlinCommonOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonToo /** * Allow using declarations only from the specified version of bundled libraries - * Possible values: "1.0", "1.1", "1.2", "1.3", "1.4 (EXPERIMENTAL)" + * Possible values: "1.0", "1.1", "1.2", "1.3", "1.4" * Default value: null */ var apiVersion: kotlin.String? /** * Provide source compatibility with the specified version of Kotlin - * Possible values: "1.0", "1.1", "1.2", "1.3", "1.4 (EXPERIMENTAL)" + * Possible values: "1.0", "1.1", "1.2", "1.3", "1.4" * Default value: null */ var languageVersion: kotlin.String? diff --git a/libraries/tools/kotlinp/testData/VersionRequirement.txt b/libraries/tools/kotlinp/testData/VersionRequirement.txt index 5980b409e19..c86b34f388a 100644 --- a/libraries/tools/kotlinp/testData/VersionRequirement.txt +++ b/libraries/tools/kotlinp/testData/VersionRequirement.txt @@ -29,7 +29,7 @@ package { // requires language version 1.3.0 (level=ERROR, message="property must not be used!") // field: property:Ljava/lang/String; // getter: getProperty()Ljava/lang/String; - // synthetic method for annotations: property$annotations()V + // synthetic method for annotations: getProperty$annotations()V public final val property: kotlin/String /* = ... */ public final get diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/annotations.txt b/plugins/kapt3/kapt3-compiler/testData/converter/annotations.txt index 182d9965d5a..ddbaa8f4059 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/annotations.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/annotations.txt @@ -111,7 +111,7 @@ public final class TestAnno2 { @Anno3(value = "property") @java.lang.Deprecated() - public static void b$annotations() { + public static void getB$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/annotations2.txt b/plugins/kapt3/kapt3-compiler/testData/converter/annotations2.txt index 6bc227730b8..1ecb47c7377 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/annotations2.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/annotations2.txt @@ -31,7 +31,7 @@ public final class AnnotationsTest { @Anno(value = "top-level-val") @java.lang.Deprecated() - public static void topLevelVal$annotations(int p0) { + public static void getTopLevelVal$annotations(int p0) { } @org.jetbrains.annotations.NotNull() @@ -84,7 +84,7 @@ public abstract class Test { @Anno(value = "abstract-val") @java.lang.Deprecated() - public static void abstractVal$annotations() { + public static void getAbstractVal$annotations() { } @org.jetbrains.annotations.NotNull() @@ -92,7 +92,7 @@ public abstract class Test { @Anno(value = "v-property") @java.lang.Deprecated() - public static void v$annotations() { + public static void getV$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/annotationsWithTargets.txt b/plugins/kapt3/kapt3-compiler/testData/converter/annotationsWithTargets.txt index d81fe24bd02..71efe5e7a30 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/annotationsWithTargets.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/annotationsWithTargets.txt @@ -19,7 +19,7 @@ public final class Bar { @Anno() @PropertyAnno() @java.lang.Deprecated() - public static void a$annotations() { + public static void getA$annotations() { } @org.jetbrains.annotations.NotNull() @@ -45,7 +45,7 @@ public final class Baz { @Anno() @java.lang.Deprecated() - public static void a$annotations() { + public static void getA$annotations() { } public Baz() { @@ -78,7 +78,7 @@ public final class Foo { @PropertyAnno() @java.lang.Deprecated() - public static void a$annotations() { + public static void getA$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/comments.txt b/plugins/kapt3/kapt3-compiler/testData/converter/comments.txt index 69f17b612bd..deaab8339c6 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/comments.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/comments.txt @@ -88,7 +88,7 @@ public final class Test { */ @Anno() @java.lang.Deprecated() - public static void prop2$annotations() { + public static void getProp2$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/deprecated.txt b/plugins/kapt3/kapt3-compiler/testData/converter/deprecated.txt index 0702cbc0454..5c990f5e91b 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/deprecated.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/deprecated.txt @@ -26,7 +26,7 @@ public final class Foo { } @java.lang.Deprecated() - public static void prop$annotations() { + public static void getProp$annotations() { } @java.lang.Deprecated() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.txt b/plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.txt index 77d469a548f..f5df613e82d 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.txt @@ -21,7 +21,7 @@ public final class JvmStaticTest { public static final class Companion { @java.lang.Deprecated() - public static void one$annotations() { + public static void getOne$annotations() { } public final int getOne() { diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.txt b/plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.txt index 13f8c5b9ee4..10d1f35ae67 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.txt @@ -19,7 +19,7 @@ public final class Test { public static final class A { @java.lang.Deprecated() - public static void test$annotations() { + public static void getTest$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/kt18791.txt b/plugins/kapt3/kapt3-compiler/testData/converter/kt18791.txt index e2a6abf90c4..ce2c7fe9efa 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/kt18791.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/kt18791.txt @@ -137,7 +137,7 @@ public final class MyActivity { @Bind(id = lib.R.id.textView) @java.lang.Deprecated() - public static void a$annotations() { + public static void getA$annotations() { } public final int getA() { @@ -146,7 +146,7 @@ public final class MyActivity { @Bind(id = lib.R.id.textView) @java.lang.Deprecated() - public static void b$annotations() { + public static void getB$annotations() { } public final int getB() { @@ -155,7 +155,7 @@ public final class MyActivity { @Bind(id = app.R.layout.mainActivity) @java.lang.Deprecated() - public static void c$annotations() { + public static void getC$annotations() { } public final int getC() { @@ -164,7 +164,7 @@ public final class MyActivity { @Bind(id = app.R.layout.mainActivity) @java.lang.Deprecated() - public static void d$annotations() { + public static void getD$annotations() { } public final int getD() { @@ -174,7 +174,7 @@ public final class MyActivity { @Anno(a1 = app.B.a1, a2 = app.B.a2, a3 = app.B.a3, a4 = app.B.a4, a5 = app.B.a5, a6 = app.B.a6, a7 = app.B.a7, a8 = app.B.a8, a9 = "A") @Bind(id = app.R2.layout.mainActivity) @java.lang.Deprecated() - public static void e$annotations() { + public static void getE$annotations() { } public final int getE() { @@ -183,7 +183,7 @@ public final class MyActivity { @Bind(id = app.B.id.textView) @java.lang.Deprecated() - public static void f$annotations() { + public static void getF$annotations() { } public final int getF() { diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.txt b/plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.txt index fdb5c0d09c7..4452a93f9e6 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.txt @@ -30,7 +30,7 @@ public final class Test { @Anno2() @Anno() @java.lang.Deprecated() - public static void prop$annotations() { + public static void getProp$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/repeatableAnnotations.txt b/plugins/kapt3/kapt3-compiler/testData/converter/repeatableAnnotations.txt index e103b5af245..75af5872492 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/repeatableAnnotations.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/repeatableAnnotations.txt @@ -190,7 +190,7 @@ public final class Test { @lib.Anno(value = "2", construct = {"A", "B"}) @lib.Anno(value = "1") @java.lang.Deprecated() - public static void value$annotations() { + public static void getValue$annotations() { } @org.jetbrains.annotations.NotNull() diff --git a/plugins/kapt3/kapt3-compiler/testData/converter/topLevel.txt b/plugins/kapt3/kapt3-compiler/testData/converter/topLevel.txt index 1a27a4085b7..b1ab9c7f33d 100644 --- a/plugins/kapt3/kapt3-compiler/testData/converter/topLevel.txt +++ b/plugins/kapt3/kapt3-compiler/testData/converter/topLevel.txt @@ -54,7 +54,7 @@ public final class TopLevelKt { @Anno(value = "extpr") @java.lang.Deprecated() - public static void extensionProperty$annotations(java.lang.Object p0) { + public static void getExtensionProperty$annotations(java.lang.Object p0) { } @org.jetbrains.annotations.NotNull()