From 83144d59be7fa5967a1cb509af0bbd5fd7f8ad32 Mon Sep 17 00:00:00 2001 From: Pavel Kirpichenkov Date: Tue, 9 Jun 2020 19:12:25 +0300 Subject: [PATCH] Fix tests --- idea/testData/resolve/partialBodyResolve/For2.dump | 2 +- idea/testData/resolve/partialBodyResolve/For2.kt | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsError.dump | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsError.kt | 2 +- .../resolve/partialBodyResolve/IfNotIsErrorQualifier.dump | 2 +- .../resolve/partialBodyResolve/IfNotIsErrorQualifier.kt | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsMyError.dump | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt | 2 +- .../partialBodyResolve/IfNotIsMyErrorWithAliasImport.dump | 2 +- .../resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.kt | 2 +- .../testData/resolve/partialBodyResolve/IfNotIsNothingProp.dump | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.kt | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsReturn.dump | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsReturn.kt | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.dump | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.kt | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsThrow.dump | 2 +- idea/testData/resolve/partialBodyResolve/IfNotIsThrow.kt | 2 +- .../resolve/partialBodyResolve/LambdaReturnsNothing2.dump | 2 +- .../resolve/partialBodyResolve/LambdaReturnsNothing2.kt | 2 +- .../resolve/partialBodyResolve/LocalNothingFun.completion | 2 +- idea/testData/resolve/partialBodyResolve/LocalNothingFun.dump | 2 +- idea/testData/resolve/partialBodyResolve/LocalNothingFun.kt | 2 +- idea/testData/resolve/partialBodyResolve/ReturnLambda.dump | 2 +- idea/testData/resolve/partialBodyResolve/ReturnLambda.kt | 2 +- .../resolve/partialBodyResolve/ThisQualifiedAutoCast.dump | 2 +- .../resolve/partialBodyResolve/ThisQualifiedAutoCast.kt | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/idea/testData/resolve/partialBodyResolve/For2.dump b/idea/testData/resolve/partialBodyResolve/For2.dump index 699e31dcbb1..70028bd56a7 100644 --- a/idea/testData/resolve/partialBodyResolve/For2.dump +++ b/idea/testData/resolve/partialBodyResolve/For2.dump @@ -7,5 +7,5 @@ fun foo(p: Any?, p1: Any?) { /* STATEMENT DELETED: print(p1!!) */ } - p.length() + p.length } diff --git a/idea/testData/resolve/partialBodyResolve/For2.kt b/idea/testData/resolve/partialBodyResolve/For2.kt index 7db0298a149..86faf91177b 100644 --- a/idea/testData/resolve/partialBodyResolve/For2.kt +++ b/idea/testData/resolve/partialBodyResolve/For2.kt @@ -5,5 +5,5 @@ fun foo(p: Any?, p1: Any?) { print(p1!!) } - p.length() + p.length } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsError.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsError.dump index 51a53acbc62..580b99f6757 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsError.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsError.dump @@ -4,5 +4,5 @@ fun foo(p: Any) { if (p !is String) { error("Not String") } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsError.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsError.kt index 3382887df41..f05d8ffeac4 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsError.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsError.kt @@ -2,5 +2,5 @@ fun foo(p: Any) { if (p !is String) { error("Not String") } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.dump index fc05730182d..5206ccf5649 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.dump @@ -4,5 +4,5 @@ fun foo(p: Any) { if (p !is String) { kotlin.error("Not String") } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.kt index a7c61dc0836..a4bcd670595 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsErrorQualifier.kt @@ -2,5 +2,5 @@ fun foo(p: Any) { if (p !is String) { kotlin.error("Not String") } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.dump index ce8842d4596..da0f5a3d5a4 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.dump @@ -6,5 +6,5 @@ fun foo(p: Any) { if (p !is String) { myError() } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt index a3246742629..1cec4c88eb0 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsMyError.kt @@ -4,5 +4,5 @@ fun foo(p: Any) { if (p !is String) { myError() } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.dump index f095597ecae..00a44528c99 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.dump @@ -8,5 +8,5 @@ fun foo(p: Any) { if (p !is String) { myNothingFun() } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.kt index 4c275c07592..70caff00c22 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.kt @@ -6,5 +6,5 @@ fun foo(p: Any) { if (p !is String) { myNothingFun() } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.dump index 2e71e2f324f..ed14c296cce 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.dump @@ -7,5 +7,5 @@ fun foo(p: Any) { if (p !is String) { prop } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.kt index f0bf8df8cb3..b56751642b8 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsNothingProp.kt @@ -5,5 +5,5 @@ fun foo(p: Any) { if (p !is String) { prop } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.dump index 8bcc0a33fb4..820c9b105dd 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.dump @@ -10,5 +10,5 @@ fun foo(p: Any?) { return } } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.kt index 3d00791c792..043f1a0cf33 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn.kt @@ -8,5 +8,5 @@ fun foo(p: Any?) { return } } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.dump index 281c65d7449..c9573805558 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.dump @@ -4,5 +4,5 @@ class C(public val v: Any) fun foo(c: C) { if (c.v !is String) return - println(c.v.length()) + println(c.v.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.kt index 381a729c0fb..2f62b6db786 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsReturn2.kt @@ -2,5 +2,5 @@ class C(public val v: Any) fun foo(c: C) { if (c.v !is String) return - println(c.v.length()) + println(c.v.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.dump b/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.dump index d528e7c7fd5..5a9b4f949ab 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.dump +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.dump @@ -4,5 +4,5 @@ fun foo(p: Any) { if (p !is String) { throw IllegalArgumentException() } - println(p.length()) + println(p.length) } diff --git a/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.kt b/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.kt index 4f41cf02fe2..2a325ef4967 100644 --- a/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.kt +++ b/idea/testData/resolve/partialBodyResolve/IfNotIsThrow.kt @@ -2,5 +2,5 @@ fun foo(p: Any) { if (p !is String) { throw IllegalArgumentException() } - println(p.length()) + println(p.length) } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.dump b/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.dump index 0b5cfc40d75..d8449e798a3 100644 --- a/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.dump +++ b/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.dump @@ -5,5 +5,5 @@ fun foo(p: String?, errorHandler: () -> Nothing) { errorHandler() } - p.length() + p.length } diff --git a/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.kt b/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.kt index 389f2e7cf4f..917664ba3b9 100644 --- a/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.kt +++ b/idea/testData/resolve/partialBodyResolve/LambdaReturnsNothing2.kt @@ -3,5 +3,5 @@ fun foo(p: String?, errorHandler: () -> Nothing) { errorHandler() } - p.length() + p.length } diff --git a/idea/testData/resolve/partialBodyResolve/LocalNothingFun.completion b/idea/testData/resolve/partialBodyResolve/LocalNothingFun.completion index 63fd55bb2aa..323a9301f52 100644 --- a/idea/testData/resolve/partialBodyResolve/LocalNothingFun.completion +++ b/idea/testData/resolve/partialBodyResolve/LocalNothingFun.completion @@ -8,5 +8,5 @@ fun foo(p: String?, p1: Any?) { if (p == null) { localError() } - p.length() + p.length } diff --git a/idea/testData/resolve/partialBodyResolve/LocalNothingFun.dump b/idea/testData/resolve/partialBodyResolve/LocalNothingFun.dump index 8cb8747d639..437ba3555a5 100644 --- a/idea/testData/resolve/partialBodyResolve/LocalNothingFun.dump +++ b/idea/testData/resolve/partialBodyResolve/LocalNothingFun.dump @@ -8,5 +8,5 @@ fun foo(p: String?, p1: Any?) { if (p == null) { localError() } - p.length() + p.length } diff --git a/idea/testData/resolve/partialBodyResolve/LocalNothingFun.kt b/idea/testData/resolve/partialBodyResolve/LocalNothingFun.kt index 8b3e62e5e4e..404a4c17816 100644 --- a/idea/testData/resolve/partialBodyResolve/LocalNothingFun.kt +++ b/idea/testData/resolve/partialBodyResolve/LocalNothingFun.kt @@ -6,5 +6,5 @@ fun foo(p: String?, p1: Any?) { if (p == null) { localError() } - p.length() + p.length } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/ReturnLambda.dump b/idea/testData/resolve/partialBodyResolve/ReturnLambda.dump index 4077d53a38d..c08b442325b 100644 --- a/idea/testData/resolve/partialBodyResolve/ReturnLambda.dump +++ b/idea/testData/resolve/partialBodyResolve/ReturnLambda.dump @@ -7,5 +7,5 @@ fun foo(p: String?): () -> String { "a" } } - p.length() + p.length } diff --git a/idea/testData/resolve/partialBodyResolve/ReturnLambda.kt b/idea/testData/resolve/partialBodyResolve/ReturnLambda.kt index eb586b56146..b146b43096a 100644 --- a/idea/testData/resolve/partialBodyResolve/ReturnLambda.kt +++ b/idea/testData/resolve/partialBodyResolve/ReturnLambda.kt @@ -5,5 +5,5 @@ fun foo(p: String?): () -> String { "a" } } - p.length() + p.length } \ No newline at end of file diff --git a/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.dump b/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.dump index 6ca69ec2eba..a653409961f 100644 --- a/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.dump +++ b/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.dump @@ -9,6 +9,6 @@ class C(val s: String?) { print(this.s!!) } - s.length() + s.length } } diff --git a/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.kt b/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.kt index bbe66c0d528..621ff2d3385 100644 --- a/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.kt +++ b/idea/testData/resolve/partialBodyResolve/ThisQualifiedAutoCast.kt @@ -7,6 +7,6 @@ class C(val s: String?) { print(this.s!!) } - s.length() + s.length } }