[NI] Update diagnostic messages in testdata

This commit is contained in:
Dmitriy Novozhilov
2019-08-01 10:55:47 +03:00
parent 8107d1515c
commit 14d6f8009d
3 changed files with 4 additions and 4 deletions
@@ -5,7 +5,7 @@ class Data<T>(val s: T)
fun test(d: Data<out Any>) {
if (d.s is String) {
<!OI;DEBUG_INFO_SMARTCAST!>d.s<!>.<!NI;UNRESOLVED_REFERENCE!>length<!>
<!DEBUG_INFO_SMARTCAST!>d.s<!>.length
}
}
@@ -91,9 +91,9 @@ interface Worker<out T>
interface RenderContext<StateT, in OutputT : Any>
val emptyOrNull: List<Nothing>? = null
val x = emptyOrNull?.<!OI;IMPLICIT_NOTHING_AS_TYPE_PARAMETER!>get<!>(0)
val x = emptyOrNull?.<!IMPLICIT_NOTHING_AS_TYPE_PARAMETER!>get<!>(0)
val errorCompletion = { <!OI;UNUSED_ANONYMOUS_PARAMETER!>e<!>: Throwable -> throw Exception() }
val errorCompletion = { <!UNUSED_ANONYMOUS_PARAMETER!>e<!>: Throwable -> throw Exception() }
fun test1() {
errorCompletion(Exception("fail"))
@@ -44,6 +44,6 @@ fun test5(x: Inv<out Any?>) {
fun test6(x: Inv<out String?>) {
when (val <!UNUSED_VARIABLE!>y<!> = x.data) {
is String -> <!OI;DEBUG_INFO_SMARTCAST!>x.data<!><!NI;UNSAFE_CALL!>.<!>length // should be ok
is String -> <!DEBUG_INFO_SMARTCAST!>x.data<!>.length // should be ok
}
}