diff --git a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt index 122e19df15f..b4862b43c83 100644 --- a/compiler/testData/diagnostics/tests/AutoCreatedIt.kt +++ b/compiler/testData/diagnostics/tests/AutoCreatedIt.kt @@ -4,7 +4,7 @@ fun text() { "direct:a" on {it.body == ""} to "mock:a" "direct:a" on {it -> it.body == ""} to "mock:a" bar {1} - bar {it + 1} + bar {it + 1} bar {it, it1 -> it} bar1 {1} diff --git a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt index f9620dae68d..fffe1dd919d 100644 --- a/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt +++ b/compiler/testData/diagnostics/tests/CompareToWithErrorType.kt @@ -1,6 +1,6 @@ // !WITH_NEW_INFERENCE fun test() { - if (x > 0) { + if (x > 0) { } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/DeferredTypes.ni.txt b/compiler/testData/diagnostics/tests/DeferredTypes.ni.txt index 39b468e726b..50ba3ee2313 100644 --- a/compiler/testData/diagnostics/tests/DeferredTypes.ni.txt +++ b/compiler/testData/diagnostics/tests/DeferredTypes.ni.txt @@ -1,7 +1,7 @@ package public interface T { - public open val a: kotlin.Any? + public open val a: [ERROR : ] 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/FunctionCalleeExpressions.kt b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt index d2fb5511921..b6b63869a51 100644 --- a/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt +++ b/compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt @@ -26,13 +26,13 @@ fun fooT2() : (t : T) -> T { fun main(args : Array) { args.foo()() args.foo1()() - a.foo1()() - a.foo1()(a) + a.foo1()() + a.foo1()(a) args.foo1()(1) args.foo1()("1") - a.foo1()("1") - a.foo1()(a) + a.foo1()("1") + a.foo1()(a) foo2()({}) foo2(){} diff --git a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.ni.txt b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.ni.txt index 8be0de8da56..cadd24ca7df 100644 --- a/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.ni.txt +++ b/compiler/testData/diagnostics/tests/InvokeAndRecursiveResolve.ni.txt @@ -21,7 +21,7 @@ public final class B { public final class C { public constructor C() - public final val bar: kotlin.Any? + public final val bar: [ERROR : ] public final val test: [ERROR : Type for bar()] public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int diff --git a/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt b/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt index 74fb7939f7e..fe2e2ca4e0c 100644 --- a/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt +++ b/compiler/testData/diagnostics/tests/PackageInExpressionPosition.kt @@ -23,5 +23,5 @@ fun main(args : Array) { System() (System) foo@ System - null in System + null in System } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/RecursiveTypeInference.ni.txt b/compiler/testData/diagnostics/tests/RecursiveTypeInference.ni.txt index e5f5ea61402..de8c2b4fa90 100644 --- a/compiler/testData/diagnostics/tests/RecursiveTypeInference.ni.txt +++ b/compiler/testData/diagnostics/tests/RecursiveTypeInference.ni.txt @@ -1,18 +1,18 @@ package package a { - public val foo: kotlin.Any? + public val foo: [ERROR : Error function type] public fun bar(): [ERROR : Error function type] } package b { public fun bar(): [ERROR : Error function type] - public fun foo(): kotlin.Any? + public fun foo(): [ERROR : Error function type] } package c { - public fun bar(): kotlin.Any? - public fun bazz(): kotlin.Any? + public fun bar(): [ERROR : Error function type] + public fun bazz(): [ERROR : Error function type] public fun foo(): [ERROR : Error function type] } diff --git a/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt b/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt index 9b99cab215d..f7ad5897fce 100644 --- a/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt +++ b/compiler/testData/diagnostics/tests/annotations/options/targets/field.kt @@ -28,7 +28,7 @@ abstract class My(@Field arg: Int, @Field val w: I fun foo() {} @Field - val v: Int by Delegates.lazy { 42 } + val v: Int by Delegates.lazy { 42 } } enum class Your { diff --git a/compiler/testData/diagnostics/tests/cast/bare/UnrelatedColon.ni.txt b/compiler/testData/diagnostics/tests/cast/bare/UnrelatedColon.ni.txt index 3deb20fc81f..a4550a556ef 100644 --- a/compiler/testData/diagnostics/tests/cast/bare/UnrelatedColon.ni.txt +++ b/compiler/testData/diagnostics/tests/cast/bare/UnrelatedColon.ni.txt @@ -1,6 +1,6 @@ package -public fun test(/*0*/ tr: Tr): Tr +public fun test(/*0*/ tr: Tr): [ERROR : G] public interface G { public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt index 3bce43c89ff..d4efbab6dc9 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.kt @@ -29,7 +29,7 @@ private fun lazy(init: () -> T): kotlin.Lazy { } object DefaultHttpClientWithBy : HttpClient by client { - val client by lazy { HttpClientImpl() } + val client by lazy { HttpClientImpl() } } object DefaultFqHttpClient : HttpClient by DefaultFqHttpClient.client { diff --git a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.ni.txt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.ni.txt index cada8d78115..3a7cf50c0e1 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.ni.txt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/fieldAsClassDelegate.ni.txt @@ -21,7 +21,7 @@ public object DefaultHttpClient : HttpClient { public object DefaultHttpClientWithBy : HttpClient { private constructor DefaultHttpClientWithBy() - public final val client: [ERROR : Type from delegate] + public final val client: [ERROR : ] 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/controlFlowAnalysis/unresolvedReference.kt b/compiler/testData/diagnostics/tests/controlFlowAnalysis/unresolvedReference.kt index 13ce6a2d403..8ca621d279d 100644 --- a/compiler/testData/diagnostics/tests/controlFlowAnalysis/unresolvedReference.kt +++ b/compiler/testData/diagnostics/tests/controlFlowAnalysis/unresolvedReference.kt @@ -1,4 +1,6 @@ +// !WITH_NEW_INFERENCE // See KT-6665: unresolved reference (v.bar) should not produce "unreachable code" after it + fun foo(): Int { val v = 1 val c = v.bar ?: return 0 @@ -27,14 +29,14 @@ fun foo3(): Int { fun bar(): Int { val v = 1 val c = v.bar ?: 42 - return c + return c } fun bar2(): Int { val v = 1 val c = if (true) v.bar else 3 - val b = c - return b + val b = c + return b } fun bar3(): Int { @@ -43,6 +45,6 @@ fun bar3(): Int { true -> v.bar else -> 3 } - val b = c - return b + val b = c + return b } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt index af5f7e11bbf..4215add1e0d 100644 --- a/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt +++ b/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt @@ -1,8 +1,8 @@ // !WITH_NEW_INFERENCE fun useDeclaredVariables() { for ((a, b)) { - a - b + a + b } } diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt index dd4bb974523..eda496595bc 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/inference/genericMethods.kt @@ -1,9 +1,10 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER +// !WITH_NEW_INFERENCE // NI_EXPECTED_FILE 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/recursiveType.kt b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt index d2fc415c51e..c03053ddd7e 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.kt @@ -8,7 +8,7 @@ val a by b) -val c by d +val c by d val d by c class Delegate(i: Int) { diff --git a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.ni.txt b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.ni.txt index cb65f7f9106..a1da67a0de6 100644 --- a/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.ni.txt +++ b/compiler/testData/diagnostics/tests/delegatedProperty/recursiveType.ni.txt @@ -1,9 +1,9 @@ package -public val a: kotlin.Any? +public val a: [ERROR : ] public val b: kotlin.Int -public val c: [ERROR : Type from delegate] -public val d: kotlin.Any? +public val c: [ERROR : ] +public val d: [ERROR : ] public final class Delegate { public constructor Delegate(/*0*/ i: kotlin.Int) diff --git a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt index beb3fdd1e18..852a7c91dba 100644 --- a/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt +++ b/compiler/testData/diagnostics/tests/enum/kt8972_cloneNotAllowed.kt @@ -2,6 +2,6 @@ enum class E : Cloneable { A; override fun clone(): Any { - return super.clone() + return super.clone() } } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt b/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt index da688cdb353..39b118e1314 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/DeprecatedSyntax.kt @@ -10,7 +10,7 @@ val returnTypeWithParameter = { ( -> Int).() -> } -val parenthesizedParameters = { (a: Int) -> } +val parenthesizedParameters = { (a: Int) -> } val parenthesizedParameters2 = { (b) -> } val none = { -> } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt index c8482754035..fe723635302 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/noExpectedType.kt @@ -25,7 +25,7 @@ fun bar() { y2 checkType { _<(A) -> Unit>() } - val z = { (a: Int, b: String) -> + val z = { (a: Int, b: String) -> a checkType { _() } b 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/imports/ClassClashStarImport.kt b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt index 79c0bc89597..3995f1a3d6a 100644 --- a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt +++ b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.kt @@ -72,5 +72,5 @@ fun test(b: B) { b_3.m2() val b_4 = a.B() - b_4.m2() + b_4.m2() } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/imports/Imports.kt b/compiler/testData/diagnostics/tests/imports/Imports.kt index 9ae3f76b170..7eebbd7e862 100644 --- a/compiler/testData/diagnostics/tests/imports/Imports.kt +++ b/compiler/testData/diagnostics/tests/imports/Imports.kt @@ -82,7 +82,7 @@ object C { } fun foo() { - if (i == 3) f() + if (i == 3) f() } //FILE:d.kt diff --git a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt index 8366e50d48d..8bda41d1e59 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/NoSenselessComparisonForErrorType.kt @@ -3,7 +3,7 @@ package a fun foo() { val a = getErrorType() - if (a == null) { //no senseless comparison + if (a == null) { //no senseless comparison } } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt index 6094d93b1d6..3913636d7a1 100644 --- a/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt +++ b/compiler/testData/diagnostics/tests/incompleteCode/diagnosticWithSyntaxError/arrayExpression.kt @@ -4,5 +4,5 @@ package bar fun main(args : Array) { class Some - Some[] names = ["ads"] + Some[] names = ["ads"] } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt b/compiler/testData/diagnostics/tests/inference/recursiveLocalFuns/selfCall.kt index 029c77abb9d..032505c6c2f 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/kt742.kt b/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt index 74f8f68504b..cb201d14604 100644 --- a/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt +++ b/compiler/testData/diagnostics/tests/inference/regressions/kt742.kt @@ -10,4 +10,4 @@ fun List.map1(f: (T)-> Q): List? = tail!!.map1(f) fun List.map2(f: (T)-> Q): List? = tail.sure().map2(f) -fun List.map3(f: (T)-> Q): List? = tail.sure<T>().map3(f) \ No newline at end of file +fun List.map3(f: (T)-> Q): List? = tail.sure<T>().map3(f) \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/infos/SmartCasts.kt b/compiler/testData/diagnostics/tests/infos/SmartCasts.kt index 6ff4b5e4432..44c4bb3c84a 100644 --- a/compiler/testData/diagnostics/tests/infos/SmartCasts.kt +++ b/compiler/testData/diagnostics/tests/infos/SmartCasts.kt @@ -202,7 +202,7 @@ fun mergeSmartCasts(a: Any?) { val i: Int = a.compareTo("") } if (a is String && a.compareTo("") == 0) {} - if (a is String || a.compareTo("") == 0) {} + if (a is String || a.compareTo("") == 0) {} } //mutability diff --git a/compiler/testData/diagnostics/tests/inner/innerThisSuper.ni.txt b/compiler/testData/diagnostics/tests/inner/innerThisSuper.ni.txt index 7e9b5cea405..21856dbc5a7 100644 --- a/compiler/testData/diagnostics/tests/inner/innerThisSuper.ni.txt +++ b/compiler/testData/diagnostics/tests/inner/innerThisSuper.ni.txt @@ -18,16 +18,16 @@ public final class Outer : Trait { public final class Nested { public constructor Nested() - public final val s: kotlin.Any? - public final val t: kotlin.Any? + public final val s: [ERROR : ] + public final val t: [ERROR : ] 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 public final inner class NestedInner { public constructor NestedInner() - public final val s: kotlin.Any? - public final val t: kotlin.Any? + public final val s: [ERROR : ] + public final val t: [ERROR : ] 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/inner/nestedVsInnerAccessOuterMember.ni.txt b/compiler/testData/diagnostics/tests/inner/nestedVsInnerAccessOuterMember.ni.txt index 5ef8f1d81a4..f426fc18b7c 100644 --- a/compiler/testData/diagnostics/tests/inner/nestedVsInnerAccessOuterMember.ni.txt +++ b/compiler/testData/diagnostics/tests/inner/nestedVsInnerAccessOuterMember.ni.txt @@ -35,7 +35,7 @@ public final class Outer { public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean public final fun f(): [ERROR : Error function type] public final fun g(): [ERROR : Error function type] - public final fun h(): kotlin.Any? + public final fun h(): [ERROR : ] public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int public final fun i(): [ERROR : ] public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String diff --git a/compiler/testData/diagnostics/tests/nullableTypes/uselessElvis.kt b/compiler/testData/diagnostics/tests/nullableTypes/uselessElvis.kt index a896e6d9ab7..61b8006ba3f 100644 --- a/compiler/testData/diagnostics/tests/nullableTypes/uselessElvis.kt +++ b/compiler/testData/diagnostics/tests/nullableTypes/uselessElvis.kt @@ -37,7 +37,7 @@ fun test() { takeNotNull(dependOn(dependOn(x) as? String) ?: "") } - takeNotNull(bar()!!) + takeNotNull(bar()!!) } inline fun reifiedNull(): T? = null diff --git a/compiler/testData/diagnostics/tests/objects/ObjectsLocal.ni.txt b/compiler/testData/diagnostics/tests/objects/ObjectsLocal.ni.txt index 14150d08944..1db96fa7660 100644 --- a/compiler/testData/diagnostics/tests/objects/ObjectsLocal.ni.txt +++ b/compiler/testData/diagnostics/tests/objects/ObjectsLocal.ni.txt @@ -1,7 +1,7 @@ package package localObjects { - public val bb: kotlin.Any? + public val bb: [ERROR : ] public fun test(): kotlin.Unit public object A { diff --git a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/elvis.kt b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/elvis.kt index 3a0ed4efc32..c8b19ee5d91 100644 --- a/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/elvis.kt +++ b/compiler/testData/diagnostics/tests/platformTypes/nullabilityWarnings/elvis.kt @@ -1,4 +1,5 @@ // !DIAGNOSTICS: -UNUSED_VARIABLE -SENSELESS_COMPARISON, -UNUSED_PARAMETER +// !WITH_NEW_INFERENCE // FILE: J.java @@ -61,7 +62,7 @@ fun test() { takeNotNull(J.getNAny() ?: J()) val x = unresolved ?: null - val y = unresolved.foo ?: return + val y = unresolved.foo ?: return } fun takeNotNull(s: J) {} diff --git a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt index 632b8a87ad9..fdaa7e1e5c0 100644 --- a/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt +++ b/compiler/testData/diagnostics/tests/properties/inferenceFromGetters/recursiveGetter.kt @@ -10,7 +10,7 @@ class A { val a get() = b val b get() = a - val z1 get() = id(z1) + 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..1efd38b174b 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: [ERROR : Error type for ParseError-argument VALUE_ARGUMENT] + public final val z2: kotlin.collections.List<[ERROR : Error type for ParseError-argument VALUE_ARGUMENT]> 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/qualifiedExpression/TypeWithError.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt index 8ce4d3641d2..5d95e0c3bae 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/TypeWithError.kt @@ -1,4 +1,5 @@ // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -UNREACHABLE_CODE +// !WITH_NEW_INFERENCE class A { class B { diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt index 6b1b3e45daf..31bea1ed20a 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/calleeExpressionAsCallExpression.kt @@ -1,2 +1,2 @@ // !WITH_NEW_INFERENCE -val unwrapped = some<sdf()()Any>::unwrap \ No newline at end of file +val unwrapped = some<sdf()()Any>::unwrap \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.ni.txt b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.ni.txt index 6903f370368..d67025dfa37 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.ni.txt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/nullCalleeExpression.ni.txt @@ -1,3 +1,3 @@ package -public val unwrapped: kotlin.Any? +public val unwrapped: [ERROR : ] diff --git a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt index 0149c20db43..9f7d93ffd66 100644 --- a/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt +++ b/compiler/testData/diagnostics/tests/recovery/absentLeftHandSide.kt @@ -8,9 +8,9 @@ fun composite() { } fun html() { - <html></html> + <html></html> } fun html1() { - <html></html>html + <html></html>html } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/kt10243.kt b/compiler/testData/diagnostics/tests/regressions/kt10243.kt index 6aa663ce675..6ab2a6061de 100644 --- a/compiler/testData/diagnostics/tests/regressions/kt10243.kt +++ b/compiler/testData/diagnostics/tests/regressions/kt10243.kt @@ -4,7 +4,7 @@ private fun doUpdateRegularTasks() { try { while (f) { val xmlText = getText() - if (xmlText == null) {} + if (xmlText == null) {} else { xmlText.value = 0 // !!! } diff --git a/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.ni.txt b/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.ni.txt index 3ad4ff95d90..15f5eef9160 100644 --- a/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.ni.txt +++ b/compiler/testData/diagnostics/tests/scopes/initializerScopeOfExtensionProperty.ni.txt @@ -2,7 +2,7 @@ package package i { public val i.C.bar: i.C.D - public val kotlin.String.bd: kotlin.Any? + public val kotlin.String.bd: [ERROR : ] public val kotlin.String.bd1: kotlin.String public val i.A.foo: [ERROR : Type for ii] public val i.C.foo: i.C.D diff --git a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt index 906039eceeb..89be6466f8a 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/varnotnull/plusplusMinusminus.kt @@ -12,7 +12,7 @@ operator fun Long?.inc() = this?.let { it + 1 } fun bar(arg: Long?): Long { var i = arg if (i++ == 5L) { - return i-- + i + return i-- + i } if (i++ == 7L) { return i++ + i diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt index a24a85c20a0..b8ba8255065 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/ambiguousSuperWithGenerics.kt @@ -14,7 +14,7 @@ class GenericDerivedClass : GenericBaseClass(), GenericBaseInterface { override fun bar(x: T): T = super.bar(x) override fun ambiguous(x: T): T = - super.ambiguous(x) + super.ambiguous(x) } class SpecializedDerivedClass : GenericBaseClass(), GenericBaseInterface { @@ -22,9 +22,9 @@ class SpecializedDerivedClass : GenericBaseCl override fun bar(x: String): String = super.bar(x) override fun ambiguous(x: String): String = - super.ambiguous(x) + super.ambiguous(x) override fun ambiguous(x: Int): Int = - super.ambiguous(x) + super.ambiguous(x) } class MixedDerivedClass : GenericBaseClass(), GenericBaseInterface { @@ -32,7 +32,7 @@ class MixedDerivedClass : GenericBaseClass override fun bar(x: T): T = super.bar(x) override fun ambiguous(x: Int): Int = - super.ambiguous(x) + super.ambiguous(x) override fun ambiguous(x: T): T = - super.ambiguous(x) + super.ambiguous(x) } \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt index 1e12c1dcf49..402593c0a80 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/unqualifiedSuperWithCallableProperty.kt @@ -14,7 +14,7 @@ interface InterfaceWithFun { class DerivedUsingFun : BaseWithCallableProp(), InterfaceWithFun { fun foo(): String = - super.fn() + super.fn() override fun bar(): String = super.bar() diff --git a/compiler/testData/diagnostics/tests/typealias/typeAliasAsQualifier.ni.txt b/compiler/testData/diagnostics/tests/typealias/typeAliasAsQualifier.ni.txt index ffaeb7635c7..bcc2798d9f6 100644 --- a/compiler/testData/diagnostics/tests/typealias/typeAliasAsQualifier.ni.txt +++ b/compiler/testData/diagnostics/tests/typealias/typeAliasAsQualifier.ni.txt @@ -3,7 +3,7 @@ package public val c: [ERROR : Type for C.Self.Self()] public val ic: [ERROR : Type for C.Self.InCompanion()] public val n: [ERROR : Type for C.Self.Nested()] -public val n2: kotlin.Any? +public val n2: [ERROR : ] public val ok: kotlin.String = "OK" public val x: [ERROR : Type for C.Self.X]