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).
This commit is contained in:
Dmitry Savvinov
2018-11-06 19:29:28 +03:00
parent facd2d7aec
commit 939b58f8f4
@@ -7,7 +7,8 @@ fun foo() {
break
}
x<!UNSAFE_CALL!>.<!>length // 'x' is unsoundly smartcasted here
// TODO: this testdata fixates undesired behavior (it should be an unsafe call)
<!DEBUG_INFO_SMARTCAST!>x<!>.length // 'x' is unsoundly smartcasted here
}
fun bar() {
@@ -17,5 +18,6 @@ fun bar() {
break
}
x<!UNSAFE_CALL!>.<!>size // 'x' is unsoundly smartcasted here
// TODO: this testdata fixates undesired behavior (it should be an unsafe call)
<!DEBUG_INFO_SMARTCAST!>x<!>.size // 'x' is unsoundly smartcasted here
}