Update some testdata according to new inference behaviour

This commit is contained in:
Dmitriy Novozhilov
2019-01-21 14:40:19 +03:00
parent 667f5032b6
commit 42b333f6fd
6 changed files with 22 additions and 17 deletions
@@ -1,4 +1,5 @@
// !LANGUAGE: +VariableDeclarationInWhenSubject
// !WITH_NEW_INFERENCE
fun foo(s1: Int, s2: Int) = s1 + s2
@@ -43,6 +44,6 @@ fun test5(x: Inv<out Any?>) {
fun test6(x: Inv<out String?>) {
when (val <!UNUSED_VARIABLE!>y<!> = x.data) {
is String -> <!DEBUG_INFO_SMARTCAST!>x.data<!>.length // should be ok
is String -> <!OI;DEBUG_INFO_SMARTCAST!>x.data<!><!NI;UNSAFE_CALL!>.<!>length // should be ok
}
}