Fix diagnostic test data to be consistent with FIR test data

This commit is contained in:
Mikhail Glukhikh
2020-03-27 16:26:50 +03:00
parent c518868c03
commit c1b9fdd2f3
5 changed files with 9 additions and 36 deletions
@@ -1,28 +0,0 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
// FILE: Function.java
public interface Function<Param, Result> {
Result fun(Param param);
}
// FILE: AdapterProcessor.java
public class AdapterProcessor<T, S> {
public AdapterProcessor(Function<? super T, ? extends S> conversion) {}
}
// FILE: main.kt
interface PsiMethod {
val containingClass: PsiClass?
}
interface PsiClass
fun test() {
val processor = AdapterProcessor<PsiMethod, PsiClass>(
Function { method: PsiMethod? -> method?.containingClass }
)
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE
// FILE: Function.java
@@ -15,6 +15,6 @@ class FunctionSubtype : () -> Unit {
}
<!NOTHING_TO_INLINE!>inline<!> fun functionSubtype(
<!ILLEGAL_INLINE_PARAMETER_MODIFIER!>noinline<!> f: FunctionSubtype,
<!ILLEGAL_INLINE_PARAMETER_MODIFIER!>crossinline<!> g: FunctionSubtype
<!ILLEGAL_INLINE_PARAMETER_MODIFIER!>noinline<!> f: FunctionSubtype,
<!ILLEGAL_INLINE_PARAMETER_MODIFIER!>crossinline<!> g: FunctionSubtype
) { }
@@ -8,16 +8,16 @@ class Bzz(public <!REPEATED_MODIFIER!>public<!> val q: Int = 1) {
public <!REPEATED_MODIFIER!>public<!> val x: Int = 2
public val y: Int
public <!REPEATED_MODIFIER!>public<!> get() = 3
public <!REPEATED_MODIFIER!>public<!> get() = 3
val z: Int
<!INCOMPATIBLE_MODIFIERS!>open<!> <!INCOMPATIBLE_MODIFIERS!>final<!> get() = 4
<!INCOMPATIBLE_MODIFIERS!>open<!> <!INCOMPATIBLE_MODIFIERS!>final<!> get() = 4
public <!REPEATED_MODIFIER!>public<!> class B(public <!REPEATED_MODIFIER!>public<!> val z: Int = 1) {
public <!REPEATED_MODIFIER!>public<!> val y: Int = 2
public val x: Int
public <!REPEATED_MODIFIER!>public<!> get() = 3
public <!REPEATED_MODIFIER!>public<!> get() = 3
}
public <!REPEATED_MODIFIER!>public<!> object C {
@@ -35,7 +35,7 @@ fun test() {
public <!REPEATED_MODIFIER!>public<!> val y: Int = 2
public val x: Int
public <!REPEATED_MODIFIER!>public<!> get() = 3
public <!REPEATED_MODIFIER!>public<!> get() = 3
}
}
@@ -19,6 +19,6 @@ public abstract class TestBug1() {
//from library
public class Pair<out A, out B> (
public val first: A,
public val second: B
public val first: A,
public val second: B
)