Move foreign annotation tests into diagnostics folder

This commit is contained in:
Victor Petukhov
2021-04-05 17:23:01 +03:00
parent 57bd4d3a98
commit 6f9694174f
340 changed files with 5049 additions and 1622 deletions
@@ -0,0 +1,19 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
// FILE: A.java
import lombok.*;
public class A {
@NonNull
public String foo(@NonNull String x) {
return "";
}
}
// FILE: main.kt
fun main(a: A) {
a.foo("").length
a.foo("")<!UNNECESSARY_SAFE_CALL!>?.<!>length
a.foo(<!NULL_FOR_NONNULL_TYPE!>null<!>)<!UNNECESSARY_SAFE_CALL!>?.<!>length
}