From 14d6f8009d31a0cdc246de2763c1c6afd1d86362 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Thu, 1 Aug 2019 10:55:47 +0300 Subject: [PATCH] [NI] Update diagnostic messages in testdata --- .../diagnostics/tests/smartCasts/inference/kt25432.kt | 2 +- .../tests/typeParameters/implicitNothingAsTypeParameter.kt | 4 ++-- .../smartCastOnValueBoundToSubjectVariable.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt b/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt index 053c23e3092..1899bc29b10 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/inference/kt25432.kt @@ -5,7 +5,7 @@ class Data(val s: T) fun test(d: Data) { if (d.s is String) { - d.s.length + d.s.length } } diff --git a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameter.kt b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameter.kt index 3e7657019bf..9751ede91ab 100644 --- a/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameter.kt +++ b/compiler/testData/diagnostics/tests/typeParameters/implicitNothingAsTypeParameter.kt @@ -91,9 +91,9 @@ interface Worker interface RenderContext val emptyOrNull: List? = null -val x = emptyOrNull?.get(0) +val x = emptyOrNull?.get(0) -val errorCompletion = { e: Throwable -> throw Exception() } +val errorCompletion = { e: Throwable -> throw Exception() } fun test1() { errorCompletion(Exception("fail")) diff --git a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt index 87ffe272222..760822a5509 100644 --- a/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt +++ b/compiler/testData/diagnostics/tests/when/withSubjectVariable/smartCastOnValueBoundToSubjectVariable.kt @@ -44,6 +44,6 @@ fun test5(x: Inv) { fun test6(x: Inv) { when (val y = x.data) { - is String -> x.data.length // should be ok + is String -> x.data.length // should be ok } } \ No newline at end of file