diff --git a/compiler/testData/codegen/box/coroutines/kt30858.kt b/compiler/testData/codegen/box/coroutines/kt30858.kt index 4cbf13241bd..447a06a605b 100644 --- a/compiler/testData/codegen/box/coroutines/kt30858.kt +++ b/compiler/testData/codegen/box/coroutines/kt30858.kt @@ -19,7 +19,7 @@ fun myLaunch( public fun myProduce(@BuilderInference block: suspend MyProducerScope.() -> Unit) {} fun MyReceiveChannel.debounce(period: Long) { - myProduce { + myProduce { myConsumeEach { myLaunch { myDelay(period) diff --git a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index 9bb5e8c019c..39173da547c 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -45,7 +45,7 @@ fun main(args : Array) { val b = fooT2()(1) checkSubtype(b) - fooT2()(1) // : Any? + fooT2()(1) // : Any? 1() 1{} diff --git a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt index eaae15e42e0..1fa35d93abb 100644 --- a/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt +++ b/compiler/testData/diagnostics/tests/ResolveOfJavaGenerics.kt @@ -5,7 +5,7 @@ fun test(a : java.lang.annotation.RetentionPolicy) { } fun test() { - java.util.Collections.emptyList() + java.util.Collections.emptyList() val a : Collection? = java.util.Collections.emptyList() } diff --git a/compiler/testData/diagnostics/tests/ResolveToJava.kt b/compiler/testData/diagnostics/tests/ResolveToJava.kt index d3af0fcd7cb..fe0b5775408 100644 --- a/compiler/testData/diagnostics/tests/ResolveToJava.kt +++ b/compiler/testData/diagnostics/tests/ResolveToJava.kt @@ -21,10 +21,10 @@ fun test(l : java.util val f : java.io.File? = null - Collections.emptyList + Collections.emptyList Collections.emptyList Collections.emptyList() - Collections.emptyList() + Collections.emptyList() checkSubtype?>(Collections.singleton(1)) Collections.singleton(1.0) diff --git a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt index 525d57ad2e8..91fa86bc7ba 100644 --- a/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt +++ b/compiler/testData/diagnostics/tests/StarsInFunctionCalls.kt @@ -1,13 +1,15 @@ +// !WITH_NEW_INFERENCE + fun getT() {} fun getTT() {} fun getTTT(x : Any) {} fun foo(a : Any?) {} public fun main() { - getT<*>() + getT<*>() ggetT<*>() - getTT<*, *>() - getTT<*, Int>() - getTT*>() - foo(getTTT*, Int>(1)) + getTT<*, *>() + getTT<*, Int>() + getTT*>() + foo(getTTT*, Int>(1)) } diff --git a/compiler/testData/diagnostics/tests/TypeInference.kt b/compiler/testData/diagnostics/tests/TypeInference.kt index e467af5c690..124ebe886bd 100644 --- a/compiler/testData/diagnostics/tests/TypeInference.kt +++ b/compiler/testData/diagnostics/tests/TypeInference.kt @@ -10,10 +10,10 @@ fun main() { val a : C = C(); val x : C = C() val y : C = C() - val z : C<*> = C() + val z : C<*> = C() val ba : C = bar(); val bx : C = bar() val by : C = bar() - val bz : C<*> = bar() + val bz : C<*> = bar() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.kt index 5c12daf7743..dc76a67d9fe 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/ambiguityWhenNoApplicableCallableReferenceCandidate.kt @@ -7,5 +7,5 @@ fun foo(y: String) {} fun bar(f: (T) -> Unit) {} fun test() { - bar(::foo) + bar(::foo) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.kt index ac9fca6cd1b..f87cc868867 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/chooseCallableReferenceDependingOnInferredReceiver.kt @@ -17,21 +17,21 @@ class B { fun bar(f: (T) -> Unit): T = TODO() fun test() { - myWith(A()) { + myWith(A()) { val t1 = bar(::foo) t1 val t2 = bar(::baz) t2 - myWith(B()) { + myWith(B()) { val a: A = bar(::foo) val b: B = bar(::foo) val t3 = bar(::baz) t3 - bar(::foo) + bar(::foo) } } } diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/eagerAndPostponedCallableReferences.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/eagerAndPostponedCallableReferences.kt index dbf3b93e70b..8c4b8a3c168 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/eagerAndPostponedCallableReferences.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/eagerAndPostponedCallableReferences.kt @@ -31,5 +31,5 @@ fun test() { val a6 = foo(::singleA, ::singleB) a6 - foo(::multiple, ::multiple) + foo(::multiple, ::multiple) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt index 9251adf33f4..709a0e84556 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.kt @@ -9,4 +9,4 @@ fun foo(s: String) {} val x1 = apply(1, ::foo) val x2 = apply("hello", ::foo) -val x3 = apply(true, ::foo) \ No newline at end of file +val x3 = apply(true, ::foo) \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.ni.txt b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.ni.txt index 06a6723ae50..556cd82d2a9 100644 --- a/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.ni.txt +++ b/compiler/testData/diagnostics/tests/callableReference/resolve/withGenericFun.ni.txt @@ -2,7 +2,7 @@ package public val x1: kotlin.Unit public val x2: kotlin.Unit -public val x3: kotlin.Nothing +public val x3: ??? public fun apply(/*0*/ x: T, /*1*/ f: (T) -> R): R public fun foo(/*0*/ i: kotlin.Int): kotlin.Unit public fun foo(/*0*/ s: kotlin.String): kotlin.Unit diff --git a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt index b75672b70d7..e00cdf7503b 100644 --- a/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt +++ b/compiler/testData/diagnostics/tests/collectionLiterals/basicCollectionLiterals.kt @@ -3,7 +3,7 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED fun test() { - val a = [] + val a = [] val b: Array = [] val c = [1, 2] val d: Array = [1, 2] diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt index b4788b32450..fb7a9e02f5d 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/differentDelegatedExpressions.kt @@ -10,10 +10,10 @@ class A(outer: Outer) { var g: String by outer.getContainer().getMyProperty() - var b: String by foo(getMyProperty()) - var r: String by foo(outer.getContainer().getMyProperty()) - var e: String by + foo(getMyProperty()) - var f: String by foo(getMyProperty()) - 1 + var b: String by foo(getMyProperty()) + var r: String by foo(outer.getContainer().getMyProperty()) + var e: String by + foo(getMyProperty()) + var f: String by foo(getMyProperty()) - 1 } fun foo(a: Any?) = MyProperty() diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt index 13cdf6a375e..e872b5a72d8 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethodInGenericClass.kt @@ -8,7 +8,7 @@ class A() { operator fun setValue(t: Any?, p: KProperty<*>, x: T) = Unit } -var a1: Int by A() +var a1: Int by A() var a2: Int by A() class B() { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt index c0e232104eb..79f128e42cf 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt @@ -4,7 +4,7 @@ import kotlin.reflect.KProperty var a: Int by A() -var a1 by A() +var a1 by A() var b: Int by B() diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt index 974b7716391..488055ba112 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.kt @@ -3,7 +3,7 @@ import kotlin.reflect.KProperty class A { - var a by MyProperty() + var a by MyProperty() } class MyProperty { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.ni.txt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.ni.txt index 35889d9c662..316fad2cbc7 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.ni.txt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/noExpectedTypeForSupertypeConstraint.ni.txt @@ -2,7 +2,7 @@ package public final class A { public constructor A() - public final var a: kotlin.Any? + public final var a: ??? public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String diff --git a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt index a32cc11b30f..ee0741ebe16 100644 --- a/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt +++ b/compiler/testData/diagnostics/tests/extensions/ExtensionFunctions.kt @@ -20,7 +20,7 @@ class A infix operator fun A.plus(a : Any) { 1.foo() - true.foo() + true.foo() 1 } diff --git a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt index 6b034e53e90..4f6e830cd0b 100644 --- a/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt +++ b/compiler/testData/diagnostics/tests/functionAsExpression/InferenceParametersTypes.kt @@ -12,7 +12,7 @@ fun test(a: (Int) -> Int) { } fun test2(a: () -> List) { - test2(fun () = listOf()) + test2(fun () = listOf()) } val a: (Int) -> Unit = fun(x) { checkSubtype(x) } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt index a921616a278..7c1ba5de89a 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.kt @@ -30,8 +30,8 @@ fun bar(aInstance: A, bInstance: B) { d checkType { _() } } - foo(bInstance) { - (a, b), (c, d) -> + foo(bInstance) { + (a, b), (c, d) -> a checkType { _() } b checkType { _() } c checkType { _() } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt index 037dec7797e..0ad96640de8 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt @@ -1,18 +1,18 @@ // !WITH_NEW_INFERENCE fun test() { run {return} - run {} + run {} } fun test2() { run {return@test2} - run {} + run {} } fun test3() { fun test4() { run {return@test3} - run {} + run {} } } diff --git a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt index ef0a0ba73f8..6ec1d9b2362 100644 --- a/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt +++ b/compiler/testData/diagnostics/tests/generics/projectionsScope/typeParameterBounds.kt @@ -19,7 +19,7 @@ fun foo2(a: A, b: A) { a.foo1(Out()) a.foo1(Out()) - a.foo2(Inv()) + a.foo2(Inv()) a.foo2(Inv()) a.foo2<Inv>(Inv()) @@ -31,7 +31,7 @@ fun foo2(a: A, b: A) { b.foo1(Out()) b.foo1>(Out()) - b.foo2(Inv()) + b.foo2(Inv()) b.foo2(Inv()) b.foo2<Inv>(Inv()) diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt index 33dce1700e1..3597b3f194c 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InConstructor.kt @@ -4,7 +4,7 @@ class C<reified T> fun id(p: T): T = p fun main() { - C() + C() val a: C = C() C<A>() diff --git a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt index e8290732d73..9365da850d2 100644 --- a/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt +++ b/compiler/testData/diagnostics/tests/generics/tpAsReified/InFunction.kt @@ -6,13 +6,13 @@ inline fun f(): T = throw UnsupportedOperationException() fun id(p: T): T = p fun main() { - f() + f() - val a: A = f() - f<A>() + val a: A = f() + f<A>() - val b: Int = f() - f() + val b: Int = f() + f() - val с: A = id(f()) + val с: A = id(f()) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt index cee31ed0e29..f3ff59c862a 100644 --- a/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt +++ b/compiler/testData/diagnostics/tests/generics/wrongNumberOfTypeArgumentsDiagnostic.kt @@ -10,7 +10,7 @@ fun test1() { } fun test2() { - val m0 = java.util.HashMap() + val m0 = java.util.HashMap() val m1 = java.util.HashMap() val m2 = java.util.HashMap() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt index 28e8c2da190..aa1018a0275 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/checkNothingIsSubtype.kt @@ -7,7 +7,7 @@ interface A fun infer(a: A) : T {} fun test(nothing: Nothing?) { - val i = infer(nothing) + val i = infer(nothing) } fun sum(a : IntArray) : Int { diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt index 3155721577f..16e9526a5dc 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/noTypeParamsInReturnType.kt @@ -6,6 +6,6 @@ fun foo(map: Map) : R = throw Exception() fun getMap() : Map = throw Exception() fun bar123() { - foo(getMap( + foo(getMap( } diff --git a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt index 6adda742074..39a4dc86ce6 100644 --- a/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt +++ b/compiler/testData/diagnostics/tests/inference/NoInferenceFromDeclaredBounds.kt @@ -4,7 +4,7 @@ fun fooT22() : T? { } fun foo1() { - fooT22() + fooT22() } val n : Nothing = null.sure() diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt index c0fda0307c8..f76f9bd8751 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedType.kt @@ -22,5 +22,5 @@ val b: () -> Unit = l@{ val c: () -> Unit = { // Interesting enough, for such expessions we use expected type Unit // (compare that with the previous case, where we didn't used expected type Unit for "hello") - materialize() + materialize() } diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt index 18434688c14..7350ae0a2b4 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithExpectedTypeAndBound.kt @@ -3,11 +3,11 @@ fun materializeNumber(): T = TODO() fun a(): Unit = run { - materializeNumber() + materializeNumber() } fun b(): Unit = run { - run { - materializeNumber() + run { + materializeNumber() } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt index 81176e8df24..9cfb3f61ced 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/coercionWithoutExpectedType.kt @@ -14,6 +14,6 @@ fun implicitCoercion() { val c = l@{ // Error: block doesn't have an expected type, so call can't be inferred! - return@l materialize() + return@l materialize() } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt index 34e7ffb3f27..a65aa2996d3 100644 --- a/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt +++ b/compiler/testData/diagnostics/tests/inference/coercionToUnit/indirectCoercionWithExpectedType.kt @@ -11,15 +11,15 @@ fun a(): Unit = run { fun b(): Unit = run { // Ok, expected type is applied - materialize() + materialize() } fun c(): Unit = run { - run { + run { // Attention! // In OI expected type 'Unit' isn't applied here because of implementation quirks (note that OI still applies Unit in case 'e') // In NI, it is applied and call is correctly inferred, which is consistent with the previous case - materialize() + materialize() } } diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt index 4b0cc5f4f2a..fe277112039 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeAdditionalTest.kt @@ -7,7 +7,7 @@ fun foo() = foo() as T fun foo2(): T = TODO() -val test = foo2().plus("") as String +val test = foo2().plus("") as String fun T.bar() = this val barTest = "".bar() as Number \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt index 64adc92aaa6..e693f4265b7 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeDoubleReceiver.kt @@ -9,10 +9,10 @@ class A { fun id(value: V) = value -val asA = foo().fooA() as A +val asA = foo().fooA() as A -val receiverParenthesized = (foo()).fooA() as A -val no2A = A().fooA().fooA() as A +val receiverParenthesized = (foo()).fooA() as A +val no2A = A().fooA().fooA() as A val correct1 = A().fooA() as A val correct2 = foo().fooA() as A diff --git a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt index a1b370c3d9f..16c79581202 100644 --- a/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt +++ b/compiler/testData/diagnostics/tests/inference/expectedTypeFromCast.kt @@ -7,7 +7,7 @@ fun id(value: V) = value val asString = foo() as String -val viaId = id(foo()) as String +val viaId = id(foo()) as String val insideId = id(foo() as String) @@ -17,5 +17,5 @@ val asStarList = foo() as List<*> val safeAs = foo() as? String -val fromIs = foo() is String -val fromNoIs = foo() !is String +val fromIs = foo() is String +val fromNoIs = foo() !is String diff --git a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt index c80d41d6f80..3ee7c4cc974 100644 --- a/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt +++ b/compiler/testData/diagnostics/tests/inference/functionPlaceholderError.kt @@ -11,5 +11,5 @@ fun test() { val q = foo(fun Int.() {}, emptyList()) //type inference no information for parameter error checkSubtype(q) - foo({}, emptyList()) + foo({}, emptyList()) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/kt28654.kt b/compiler/testData/diagnostics/tests/inference/kt28654.kt index cf734d7057a..46e7e16afb2 100644 --- a/compiler/testData/diagnostics/tests/inference/kt28654.kt +++ b/compiler/testData/diagnostics/tests/inference/kt28654.kt @@ -6,5 +6,5 @@ fun select(): K = val t = select() + val t = select() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/kt6175.kt b/compiler/testData/diagnostics/tests/inference/kt6175.kt index e8528f64c10..d06a41f36f1 100644 --- a/compiler/testData/diagnostics/tests/inference/kt6175.kt +++ b/compiler/testData/diagnostics/tests/inference/kt6175.kt @@ -4,46 +4,46 @@ fun foo(body: (R?) -> T): T = fail() fun test1() { - foo { - true + foo { + true + } + foo { x -> + true } - foo { x -> - true - } } fun bar(body: (R) -> T): T = fail() fun test2() { - bar { - true + bar { + true + } + bar { x -> + true } - bar { x -> - true - } } fun baz(body: (List) -> T): T = fail() fun test3() { - baz { - true + baz { + true + } + baz { x -> + true } - baz { x -> - true - } } fun brr(body: (List) -> T): T = fail() fun test4() { - brr { - true + brr { + true + } + brr { x -> + true } - brr { x -> - true - } } fun fail(): Nothing = throw Exception() \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt index 3a58828b7f6..6ae1bb2865e 100644 --- a/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt +++ b/compiler/testData/diagnostics/tests/inference/nestedCalls/binaryExpressions.kt @@ -14,7 +14,7 @@ fun id(t: T): T = t infix fun Z.foo(a: A): A = a fun test(z: Z) { - z foo newA() + z foo newA() val a: A = id(z foo newA()) val b: A = id(z.foo(newA())) use(a, b) @@ -24,19 +24,19 @@ fun test(z: Z) { operator fun Z.plus(a: A): A = a fun test1(z: Z) { - id(z + newA()) - val a: A = z + newA() - val b: A = z.plus(newA()) - val c: A = id(z + newA()) - val d: A = id(z.plus(newA())) - use(a, b, c, d) + id(z + newA()) + val a: A = z + newA() + val b: A = z.plus(newA()) + val c: A = id(z + newA()) + val d: A = id(z.plus(newA())) + use(a, b, c, d) } //comparison operation operator fun Z.compareTo(a: A): Int { use(a); return 1 } fun test2(z: Z) { - val a: Boolean = id(z < newA()) + val a: Boolean = id(z < newA()) val b: Boolean = id(z < newA()) use(a, b) } @@ -45,26 +45,26 @@ fun test2(z: Z) { fun Z.equals(any: Any): Int { use(any); return 1 } fun test3(z: Z) { - z == newA() + z == newA() z == newA() - id(z == newA()) + id(z == newA()) id(z == newA()) - id(z === newA()) + id(z === newA()) id(z === newA()) } //'in' operation fun test4(collection: Collection>) { - id(newA() in collection) - id(newA() in collection) + id(newA() in collection) + id(newA() in collection) } //boolean operations fun toBeOrNot(): Boolean = throw Exception() fun test5() { - if (toBeOrNot() && toBeOrNot()) {} + if (toBeOrNot() && toBeOrNot()) {} if (toBeOrNot() && toBeOrNot()) {} } diff --git a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt index d225137851c..b08fc1b568f 100644 --- a/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt +++ b/compiler/testData/diagnostics/tests/inference/noInformationForParameter.kt @@ -5,7 +5,7 @@ package noInformationForParameter import java.util.* fun test() { - val n = newList() + val n = newList() val n1 : List = newList() } diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt index 82dcf83876b..061413babac 100644 --- a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt +++ b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt @@ -3,7 +3,7 @@ fun foo() { fun bar1() = bar1() fun bar2() = 1 + bar2() - fun bar3() = id(bar3()) + fun bar3() = id(bar3()) } fun id(x: T) = x diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt index 3b09028dc2b..bf6cb78a2a6 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2200.kt @@ -5,7 +5,7 @@ package n fun main() { - val a = array(array()) + val a = array(array()) val a0 : Array> = array(array()) val a1 = array(array()) checkSubtype>>(a1) diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt index d59e9d80967..a9d9f2a8bd1 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt2445.kt @@ -4,7 +4,7 @@ package a fun main() { - test { + test { } } diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt index ce50f71f86b..5f0417bd072 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt832.kt @@ -7,5 +7,5 @@ fun fooT2() : (t : T) -> T { } fun test() { - fooT2()(1) // here 1 should not be marked with an error + fooT2()(1) // here 1 should not be marked with an error } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt index 8f55a0a7952..42480796d15 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt948.kt @@ -12,12 +12,12 @@ fun emptyList() : List? = ArrayList() fun foo() { // type arguments shouldn't be required val l : List = emptyList()!! - val l1 = emptyList()!! + val l1 = emptyList()!! - checkSubtype>(emptyList()!!) - checkSubtype?>(emptyList()) + checkSubtype>(emptyList()!!) + checkSubtype?>(emptyList()) - doWithList(emptyList()!!) + doWithList(emptyList()!!) } fun doWithList(list: List) = list \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt index e1f885429db..22d3d719d21 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/FunctionPlaceholder.kt @@ -11,7 +11,7 @@ fun test() { foo { x -> x} foo { x: Int -> x} - bar { it + 1 } - bar { x -> x + 1} + bar { it + 1 } + bar { x -> x + 1} bar { x: Int -> x + 1} } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt index 6ba859b70fb..e97fdd3c825 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/cannotInferParameterTypeWithInference.kt @@ -4,8 +4,8 @@ package aa fun foo(block: (T)-> R) = block fun test1() { - foo { - x -> // here we have 'cannot infer parameter type' error + foo { + x -> // here we have 'cannot infer parameter type' error 43 } } diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt index 61c1b5b6ad0..7bae629094a 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnComponentN.kt @@ -6,5 +6,5 @@ class X operator fun X.component1(): T = TODO() fun test() { - val (y) = X() + val (y) = X() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt index 001a1300acc..bf07e2b5f72 100644 --- a/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt +++ b/compiler/testData/diagnostics/tests/inference/reportingImprovements/typeInferenceFailedOnIteratorCall.kt @@ -4,6 +4,6 @@ class X operator fun X.iterator(): Iterable = TODO() fun test() { - for (i in X()) { + for (i in X()) { } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt index 370007423b0..e10a80675fc 100644 --- a/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt +++ b/compiler/testData/diagnostics/tests/inference/upperBounds/doNotInferFromBoundsOnly.kt @@ -6,7 +6,7 @@ interface A fun emptyList(): List = throw Exception() fun test1() { - emptyList() + emptyList() } //-------------- @@ -14,7 +14,7 @@ fun test1() { fun emptyListOfA(): List = throw Exception() fun test2() { - emptyListOfA() + emptyListOfA() } //-------------- @@ -22,7 +22,7 @@ fun test2() { fun emptyStrangeMap(): Map = throw Exception() fun test3() { - emptyStrangeMap() + emptyStrangeMap() } //-------------- diff --git a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt index f68063bc7c3..da716cf468c 100644 --- a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt +++ b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.kt @@ -5,6 +5,6 @@ class Outer { } fun nested() = Outer.Nested() -fun noArguments() = Outer.Nested() +fun noArguments() = Outer.Nested() fun noArgumentsExpectedType(): Outer.Nested = Outer.Nested() fun manyArguments() = Outer.Nested() diff --git a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.ni.txt b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.ni.txt index 407fc3d2c41..3af7e9b58f1 100644 --- a/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.ni.txt +++ b/compiler/testData/diagnostics/tests/inner/qualifiedExpression/genericNestedClass.ni.txt @@ -1,8 +1,8 @@ package -public fun manyArguments(): Outer.Nested +public fun manyArguments(): Outer.Nested public fun nested(): Outer.Nested -public fun noArguments(): Outer.Nested +public fun noArguments(): Outer.Nested public fun noArgumentsExpectedType(): Outer.Nested public final class Outer { diff --git a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt index f092f6d8aeb..a1501124a88 100644 --- a/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt +++ b/compiler/testData/diagnostics/tests/j+k/genericConstructor/superCallImpossibleToInfer.kt @@ -12,10 +12,10 @@ public class A { // TODO: It's effectively impossible to perform super call to such constructor // if there is not enough information to infer corresponding arguments // May be we could add some special syntax for such arguments -class B1(x: List) : A("", x) +class B1(x: List) : A("", x) class B2(x: List) : A("", x) class C : A { - constructor(x: List) : super("", x) + constructor(x: List) : super("", x) constructor(x: List, y: Int) : super("", x) } diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt index 5f1c225af12..cea319d6347 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.kt @@ -1,7 +1,7 @@ // !WITH_NEW_INFERENCE // NI_EXPECTED_FILE -val x get() = foo() -val y get() = bar() +val x get() = foo() +val y get() = bar() fun foo(): E = null!! fun bar(): List = null!! diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.ni.txt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.ni.txt index cc71a5d3a8d..53d40b1cdf9 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.ni.txt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/cantBeInferred.ni.txt @@ -1,6 +1,6 @@ package -public val x: kotlin.Nothing -public val y: kotlin.collections.List +public val x: ??? +public val y: kotlin.collections.List public fun bar(): kotlin.collections.List public fun foo(): E diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt index d8e0f16d48a..fdaa7e1e5c0 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt @@ -10,8 +10,8 @@ class A { val a get() = b val b get() = a - val z1 get() = id(z1) - val z2 get() = l(z2) + val z1 get() = id(z1) + val z2 get() = l(z2) val u get() = field } diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.ni.txt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.ni.txt index ed4126242a5..da9b6ba8875 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.ni.txt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.ni.txt @@ -10,8 +10,8 @@ public final class A { public final val b: [ERROR : Error function type] public final val u: [ERROR : Error function type] public final val y: [ERROR : Error function type] - public final val z1: kotlin.Nothing - public final val z2: kotlin.collections.List + public final val z1: ??? + public final val z2: kotlin.collections.List public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt index ef910e36490..ebb83e878de 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.kt @@ -8,8 +8,8 @@ } // cantBeInferred.kt -val x1 get() = foo() -val y1 get() = bar() +val x1 get() = foo() +val y1 get() = bar() fun foo(): E = null!! fun bar(): List = null!! diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.ni.txt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.ni.txt index 5c6b388fc09..9dc8e7e025a 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.ni.txt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/unsupportedInferenceFromGetters.ni.txt @@ -2,12 +2,12 @@ package public val u: kotlin.String public val x: [ERROR : No type, no body] -public val x1: kotlin.Nothing +public val x1: ??? public val x2: kotlin.String public var x3: kotlin.Int public val x4: [ERROR : Error function type] public val x5: kotlin.Nothing? -public val y1: kotlin.collections.List +public val y1: kotlin.collections.List public val y2: kotlin.collections.List public val y5: kotlin.Nothing public val z2: kotlin.collections.List diff --git a/compiler/testData/diagnostics/tests/regressions/ea72837.kt b/compiler/testData/diagnostics/tests/regressions/ea72837.kt index 91b6aac836c..d729cf38ef5 100644 --- a/compiler/testData/diagnostics/tests/regressions/ea72837.kt +++ b/compiler/testData/diagnostics/tests/regressions/ea72837.kt @@ -5,6 +5,6 @@ fun h(x: () -> Unit) = 1 fun foo() { f(::) - g(::) + g(::) h(::) } diff --git a/compiler/testData/diagnostics/tests/regressions/kt10843.kt b/compiler/testData/diagnostics/tests/regressions/kt10843.kt index 02061727110..3992bd25473 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10843.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10843.kt @@ -1,7 +1,7 @@ // !WITH_NEW_INFERENCE // NI_EXPECTED_FILE // See EA-76890 / KT-10843: NPE during analysis -fun lambda(x : Int?) = x?.let l { +fun lambda(x : Int?) = x?.let l { y -> if (y > 0) return@l x y diff --git a/compiler/testData/diagnostics/tests/regressions/kt10843.ni.txt b/compiler/testData/diagnostics/tests/regressions/kt10843.ni.txt index 7a788993116..13a7c7da10b 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10843.ni.txt +++ b/compiler/testData/diagnostics/tests/regressions/kt10843.ni.txt @@ -1,3 +1,3 @@ package -public fun lambda(/*0*/ x: kotlin.Int?): [ERROR : Error function type] +public fun lambda(/*0*/ x: kotlin.Int?): [ERROR : ] diff --git a/compiler/testData/diagnostics/tests/regressions/kt353.kt b/compiler/testData/diagnostics/tests/regressions/kt353.kt index 3a1fa33a319..89c5df433c1 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt353.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt353.kt @@ -7,13 +7,13 @@ interface A { fun foo(a: A) { val g : () -> Unit = { - a.gen() //it works: Unit is derived + a.gen() //it works: Unit is derived } val u: Unit = a.gen() // Unit should be inferred if (true) { - a.gen() // Shouldn't work: no info for inference + a.gen() // Shouldn't work: no info for inference } val b : () -> Unit = { @@ -29,5 +29,5 @@ fun foo(a: A) { a.gen() //type mismatch, but Int can be derived } - a.gen() // Shouldn't work: no info for inference + a.gen() // Shouldn't work: no info for inference } diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt index 7fe9f3471ea..7a9faa105ec 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.kt @@ -25,4 +25,4 @@ val y7: B = = B("") val y9 = B(1) -val y10 = B("") +val y10 = B("") diff --git a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.ni.txt b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.ni.txt index 01b8fad31a2..18da66c17a4 100644 --- a/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.ni.txt +++ b/compiler/testData/diagnostics/tests/secondaryConstructors/constructorCallType.ni.txt @@ -4,7 +4,7 @@ public val x1: A public val x2: A public val x3: A public val y1: B -public val y10: B +public val y10: B public val y2: B public val y3: B public val y4: B diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameterNI.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameterNI.kt index bf45435bb16..2f1e47710b2 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameterNI.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameterNI.kt @@ -11,39 +11,39 @@ fun test_5(): List = 10 as List fun test_6(): Map = 10 as Map fun case_1() { - test_5() - test_6() - val x = test_6() + test_5() + test_6() + val x = test_6() } fun case_2() { - test_1 { null!! } + test_1 { null!! } } fun case_3() { - test_2 { null!! } + test_2 { null!! } } fun case_4() { - test_3 { null!! } + test_3 { null!! } } fun case_5() { - test_4 { null!! } + test_4 { null!! } } fun case_6() { - test_1 { throw Exception() } + test_1 { throw Exception() } } fun case_7() { - test_2 { throw Exception() } + test_2 { throw Exception() } } fun case_8() { - test_3 { throw Exception() } + test_3 { throw Exception() } } fun case_9() { - test_4 { throw Exception() } + test_4 { throw Exception() } } diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt index 583629c8e44..46bbc07fa6a 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorForProjection.kt @@ -11,5 +11,5 @@ typealias CT = C val test1 = CStar() val test2 = CIn() val test3 = COut() -val test4 = CT<*>() +val test4 = CT<*>() val test5 = CT>() \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.ni.txt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.ni.txt index ee02dcb2600..8214d295a05 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.ni.txt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.ni.txt @@ -3,7 +3,7 @@ package public val test0: N /* = Num */ public val test1: N /* = Num */ public val test2: C /* = Cons */ -public val test3: CC /* = Cons> */ +public val test3: CC /* = Cons> */ public val test4: CC /* = Cons> */ public val test5: PL /* = Pair> */ public fun testProjections1(/*0*/ x: Pair): Foo diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.kt b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.kt index 376d408b644..0985a25df25 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.kt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.kt @@ -5,4 +5,4 @@ class Cons(val head: T, val tail: Cons?) typealias C = Cons val test1 = C(1, C(2, null)) -val test2 = C(1, C("", null)) +val test2 = C(1, C("", null)) diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt index 699aa5d399a..c19433676f1 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.kt @@ -9,26 +9,26 @@ class Controller { fun generate(g: suspend Controller.() -> Unit): S = TODO() -val test1 = generate { +val test1 = generate { apply { - yield(4) + yield(4) } } -val test2 = generate { - yield(B) +val test2 = generate { + yield(B) apply { - yield(C) + yield(C) } } -val test3 = generate { +val test3 = generate { this.let { - yield(B) + yield(B) } apply { - yield(C) + yield(C) } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.ni.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.ni.txt index 4f73c8e8154..861d69dbc6a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.ni.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/applyInsideCoroutine.ni.txt @@ -1,8 +1,8 @@ package -public val test1: kotlin.Nothing -public val test2: kotlin.Nothing -public val test3: kotlin.Nothing +public val test1: ??? +public val test2: ??? +public val test3: ??? public fun generate(/*0*/ g: suspend Controller.() -> kotlin.Unit): S public interface A { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt index 1f7cb3dc018..7aafbff5bdd 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionWithNonValuableConstraints.kt @@ -29,7 +29,7 @@ val test1 = generate { baseExtension() } -val test2 = generate { +val test2 = generate { baseExtension() } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt index c92b6c2b283..3f73c93a76d 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/extensionsWithNonValuableConstraintsGenericBase.kt @@ -28,7 +28,7 @@ val test1 = generate { yield("foo") } -val test2 = generate { +val test2 = generate { starBase() } @@ -47,6 +47,6 @@ val test5 = generateSpecific { stringBase() } -val test6 = generateSpecific { +val test6 = generateSpecific { stringBase() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt index 2a1ad52c01d..dfffb034b7a 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.kt @@ -18,8 +18,8 @@ val member = build { add(42) } -val memberWithoutAnn = wrongBuild { - add(42) +val memberWithoutAnn = wrongBuild { + add(42) } val extension = build { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.ni.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.ni.txt index 97b528581b6..36443636f61 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.ni.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/inferCoroutineTypeInOldVersion.ni.txt @@ -2,7 +2,7 @@ package public val extension: kotlin.collections.List public val member: kotlin.collections.List -public val memberWithoutAnn: kotlin.collections.List +public val memberWithoutAnn: kotlin.collections.List public val safeExtension: kotlin.collections.List public fun build(/*0*/ g: suspend Builder.() -> kotlin.Unit): kotlin.collections.List public fun wrongBuild(/*0*/ g: Builder.() -> kotlin.Unit): kotlin.collections.List diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt index 1c26ac1eb46..0df46524f9c 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedSuspendCallInsideLambda.kt @@ -3,7 +3,7 @@ suspend fun wrapUp2() { withContext { - other() + other() } } suspend fun withContext(block: suspend () -> T) {} diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt index b9fc0a49c70..a5f83cb7109 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt @@ -18,7 +18,7 @@ suspend fun GenericController>.yieldGenerate(g: suspend GenericContr val test1 = generate { // TODO: KT-15185 - yieldGenerate { + yieldGenerate { yield(4) } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.ni.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.ni.txt index 22b34c1f8db..18d72d5c225 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.ni.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.ni.txt @@ -1,6 +1,6 @@ package -public val test1: kotlin.collections.List> +public val test1: kotlin.collections.List> public fun generate(/*0*/ @kotlin.BuilderInference g: suspend GenericController.() -> kotlin.Unit): kotlin.collections.List @kotlin.BuilderInference public suspend fun GenericController>.yieldGenerate(/*0*/ g: suspend GenericController.() -> kotlin.Unit): kotlin.Unit diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt index c14299a97ad..4b299877c99 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.kt @@ -25,8 +25,8 @@ val member = build { add(42) } -val memberWithoutAnn = wrongBuild { - add(42) +val memberWithoutAnn = wrongBuild { + add(42) } val extension = build { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.ni.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.ni.txt index 25ef4449a8d..2c2293e9996 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.ni.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/resolveUsualCallWithBuilderInference.ni.txt @@ -2,7 +2,7 @@ package public val extension: kotlin.collections.List public val member: kotlin.collections.List -public val memberWithoutAnn: kotlin.collections.List +public val memberWithoutAnn: kotlin.collections.List public val safeExtension: kotlin.collections.List public fun build(/*0*/ @kotlin.BuilderInference g: Builder.() -> kotlin.Unit): kotlin.collections.List public fun wrongBuild(/*0*/ g: Builder.() -> kotlin.Unit): kotlin.collections.List diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt index 76e51ac080c..4cb4d3a2642 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWithErrors.kt @@ -15,7 +15,7 @@ fun generate(@BuilderInference g: suspend Controller.() -> Unit): S = TOD class A -val test1 = generate { +val test1 = generate { yield(A) } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt index fad4ffce826..78b722505fc 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.kt @@ -8,6 +8,6 @@ class Controller { fun generate(g: suspend Controller.() -> Unit): S = TODO() -val test = generate { - yield("foo") +val test = generate { + yield("foo") } \ No newline at end of file diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.ni.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.ni.txt index a832994fa5f..c2415d62369 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.ni.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/suspendCallsWrongUpperBound.ni.txt @@ -1,6 +1,6 @@ package -public val test: kotlin.Number +public val test: ??? public fun generate(/*0*/ g: suspend Controller.() -> kotlin.Unit): S public final class Controller { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt index 12fdae2ff77..d085841f48e 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.kt @@ -8,8 +8,8 @@ class GenericController { fun generate(g: suspend GenericController.(S) -> Unit): S = TODO() -val test1 = generate { - yield(4) +val test1 = generate { + yield(4) } val test2 = generate { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.ni.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.ni.txt index 878c3d6ac6c..a052cb2fec4 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.ni.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/withUninferredParameter.ni.txt @@ -1,6 +1,6 @@ package -public val test1: kotlin.Nothing +public val test1: ??? public val test2: kotlin.Int public val test3: kotlin.Int public fun generate(/*0*/ g: suspend GenericController.(S) -> kotlin.Unit): S diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.kt index c2cbf5446ef..625b84328f5 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.kt @@ -5,13 +5,13 @@ import kotlin.experimental.ExperimentalTypeInference fun test1() { - sequence { + sequence { val a: Array = arrayOf(1, 2, 3) val b = arrayOf(1, 2, 3) } } -fun test2() = sequence { arrayOf(1, 2, 3) } +fun test2() = sequence { arrayOf(1, 2, 3) } class Foo @@ -23,11 +23,11 @@ fun f2(@BuilderInference f: Foo.() -> Unit) { } fun test3() { - f1 { + f1 { val a: Array = arrayOf(1, 2, 3) } - f2 { + f2 { val a: Array = arrayOf(1, 2, 3) } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.txt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.txt index 8aa658f413d..e529389a5a3 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/kt28658.txt @@ -3,7 +3,7 @@ package public fun f1(/*0*/ f: Foo.() -> kotlin.Unit): kotlin.Unit @kotlin.UseExperimental(markerClass = {kotlin.experimental.ExperimentalTypeInference::class}) public fun f2(/*0*/ @kotlin.BuilderInference f: Foo.() -> kotlin.Unit): kotlin.Unit public fun test1(): kotlin.Unit -public fun test2(): kotlin.sequences.Sequence +public fun test2(): [ERROR : Error function type] public fun test3(): kotlin.Unit public final class Foo { diff --git a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt index 4386d8bf28d..0466fc0c4cb 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/coroutines/lambdaExpectedType.kt @@ -31,22 +31,22 @@ fun foo() { genericBuilder { "" } val y = { 1 } - genericBuilder(y) + genericBuilder(y) - unitBuilder {} - unitBuilder { 1 } - unitBuilder({}) - unitBuilder({ 1 }) + unitBuilder {} + unitBuilder { 1 } + unitBuilder({}) + unitBuilder({ 1 }) - manyArgumentsBuilder({}, { "" }) { 1 } + manyArgumentsBuilder({}, { "" }) { 1 } - val s: String = manyArgumentsBuilder({}, { "" }) { 1 } + val s: String = manyArgumentsBuilder({}, { "" }) { 1 } - manyArgumentsBuilder({}, { "" }, { 1 }) - manyArgumentsBuilder({}, { 1 }, { 2 }) + manyArgumentsBuilder({}, { "" }, { 1 }) + manyArgumentsBuilder({}, { 1 }, { 2 }) - severalParamsInLambda { x, y -> + severalParamsInLambda { x, y -> x checkType { _() } y checkType { _() } - } + } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt index b5618b01cfe..b46a6e56057 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/noInferAnnotation.kt @@ -13,7 +13,7 @@ fun test3(t1: @kotlin.internal.NoInfer T): T = t1 fun usage() { test1(1, "312") 1.test2("") - test3("") + test3("") } @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.kt index fdbad6d3278..dcbe4462eee 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.kt @@ -265,14 +265,14 @@ fun case_16() { if (x != null !is Boolean !is Boolean !is Boolean !is Boolean !is Boolean) { x - x.java + x.java } } // TESTCASE NUMBER: 17 val case_17 = if (nullableIntProperty == null == true == false) 0 else { nullableIntProperty - nullableIntProperty.java + nullableIntProperty.java } //TESTCASE NUMBER: 18 diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/22.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/22.kt index 9380c05fd39..3efb6b9d235 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/22.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/22.kt @@ -176,7 +176,7 @@ fun case_12(x: Int?) { val y: Int while (true) { - break[x!!] + break[x!!] } x diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.kt index e6ccb7a8f21..9839fd0df46 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.kt @@ -1304,13 +1304,9 @@ open class Case29(a: Int?, val b: Float?, private val c: Unit?, protected val d: s = null s.hashCode() s - if (s != null) s.java if (s != null) s - if (this.s != null) s.java if (this.s != null) s - if (s != null || this.s != null) s.java if (s != null || this.s != null) s - if (s != null || this.s != null) this.s.java if (s != null || this.s != null) this.s } @@ -2352,13 +2348,9 @@ sealed class Case30(a: Int?, val b: Float?, private val c: Unit?, protected val s = null s.hashCode() s - if (s != null) s.java if (s != null) s - if (this.s != null) s.java if (this.s != null) s - if (s != null || this.s != null) s.java if (s != null || this.s != null) s - if (s != null || this.s != null) this.s.java if (s != null || this.s != null) this.s } @@ -3401,13 +3393,9 @@ enum class Case31(a: Int?, val b: Float?, private val c: Unit?, protected val d: s = null s.hashCode() s - if (s != null) s.java if (s != null) s - if (this.s != null) s.java if (this.s != null) s - if (s != null || this.s != null) s.java if (s != null || this.s != null) s - if (s != null || this.s != null) this.s.java if (s != null || this.s != null) this.s } @@ -4053,13 +4041,9 @@ object Case32 { s = null s.hashCode() s - if (s != null) s.java if (s != null) s - if (this.s != null) s.java if (this.s != null) s - if (s != null || this.s != null) s.java if (s != null || this.s != null) s - if (s != null || this.s != null) this.s.java if (s != null || this.s != null) this.s } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt index 137eb3da727..64e9665b951 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt @@ -716,7 +716,6 @@ fun case_36(x: Any) { if (x == z) { x - x.java } } @@ -735,7 +734,6 @@ fun case_38() { if (Object.prop_2 != z) else { Object.prop_2 - Object.prop_2.java } } @@ -990,7 +988,6 @@ fun case_57(a: (() -> Unit)) { if (a == z) { kotlin.Unit & kotlin.Nothing")!>a - kotlin.Unit & kotlin.Nothing"), DEBUG_INFO_SMARTCAST!>a.java } } @@ -1001,7 +998,6 @@ fun case_58(a: ((Float) -> Int?)?, b: Float?, z: Nothing?) { b if (a != z) { kotlin.Int?)? & (kotlin.Float) -> kotlin.Int? & kotlin.Nothing")!>a - kotlin.Int?)? & kotlin.Nothing"), DEBUG_INFO_SMARTCAST!>a.java } } }