[NI-MIGRATE] Update diagnostic messages

This commit is contained in:
Mikhail Zarechenskiy
2020-02-10 01:17:03 +03:00
parent cd0012c527
commit 319a38bd5c
38 changed files with 123 additions and 52 deletions
@@ -1,4 +1,4 @@
// !LANGUAGE: +NewInference
// !LANGUAGE: +NewInference -SamConversionForKotlinFunctions
// FILE: Runnable.java
public interface Runnable {
void run();
@@ -1,4 +1,4 @@
// !LANGUAGE: +NewInference
// !LANGUAGE: +NewInference -SamConversionForKotlinFunctions
// FILE: Runnable.java
public interface Runnable {
void run();
@@ -1,5 +1,5 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
// !LANGUAGE: +NewInference +SamConversionForKotlinFunctions -ProhibitVarargAsArrayAfterSamArgument
// !LANGUAGE: +NewInference +SamConversionForKotlinFunctions -ProhibitVarargAsArrayAfterSamArgument -SamConversionPerArgument
// IGNORE_BACKEND: JS, JS_IR
// SKIP_TXT
@@ -1,5 +1,5 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
// !LANGUAGE: +NewInference +SamConversionForKotlinFunctions -ProhibitVarargAsArrayAfterSamArgument
// !LANGUAGE: +NewInference +SamConversionForKotlinFunctions -ProhibitVarargAsArrayAfterSamArgument -SamConversionPerArgument
// IGNORE_BACKEND: JS, JS_IR
// SKIP_TXT
@@ -1,4 +1,4 @@
// !LANGUAGE: +NewInference
// !LANGUAGE: +NewInference -SamConversionForKotlinFunctions
// FILE: Runnable.java
public interface Runnable {
void run();
@@ -1,4 +1,4 @@
// !LANGUAGE: +NewInference
// !LANGUAGE: +NewInference -SamConversionForKotlinFunctions
// FILE: Runnable.java
public interface Runnable {
void run();
@@ -25,7 +25,7 @@ fun test3(a: () -> Unit) {
fun test4(a: () -> Unit, b: () -> Unit) {
if (a is Runnable) {
J().run2(a, b)
J().run2(<!DEBUG_INFO_SMARTCAST!>a<!>, b)
}
}