From 939b58f8f46d2662cc61839480ca3426e09b3851 Mon Sep 17 00:00:00 2001 From: Dmitry Savvinov Date: Tue, 6 Nov 2018 19:29:28 +0300 Subject: [PATCH] Fix testdata to incorrect to keep local testruns green This test was originally written with fix for KT-22379 Lately, fix was proven to be wrong and reverted (KT-27084), which made this test fail. Correct solution here would be to mute test with link to YT issue, but unfortunately we don't have infrastructure to mute tests locally (yet), which is a major issue because this tests is a part of very popular for local smoke-testing test suite (DiagnosticTestsGenerated). --- .../loops/whileWithAssertInConditionAndBreakAfter.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt b/compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt index 0a21dea3922..9a6a6f19871 100644 --- a/compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt +++ b/compiler/testData/diagnostics/tests/smartCasts/loops/whileWithAssertInConditionAndBreakAfter.kt @@ -7,7 +7,8 @@ fun foo() { break } - x.length // 'x' is unsoundly smartcasted here + // TODO: this testdata fixates undesired behavior (it should be an unsafe call) + x.length // 'x' is unsoundly smartcasted here } fun bar() { @@ -17,5 +18,6 @@ fun bar() { break } - x.size // 'x' is unsoundly smartcasted here + // TODO: this testdata fixates undesired behavior (it should be an unsafe call) + x.size // 'x' is unsoundly smartcasted here } \ No newline at end of file