[TD] Update diagnostics test data due to new test runners
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
FILE: covariantArrayAsReceiver.kt
|
||||
public abstract interface UsageInfo : R|kotlin/Any| {
|
||||
public abstract val usage: R|PsiElement|
|
||||
public get(): R|PsiElement|
|
||||
|
||||
}
|
||||
public abstract interface PsiElement : R|kotlin/Any| {
|
||||
}
|
||||
public abstract interface KtParameter : R|PsiElement| {
|
||||
}
|
||||
public abstract interface KtLightMethod : R|PsiElement| {
|
||||
}
|
||||
public final fun <T> R|kotlin/Array<out T>|.filterNot(f: R|(T) -> kotlin/Boolean|): R|kotlin/collections/List<T>| {
|
||||
^filterNot this@R|/filterNot|
|
||||
}
|
||||
public final fun <T> R|kotlin/Array<T>|.toList(): R|kotlin/collections/List<T>?| {
|
||||
^toList Null(null)
|
||||
}
|
||||
public final fun foo(element: R|PsiElement|, usages: R|kotlin/Array<UsageInfo>|): R|kotlin/Unit| {
|
||||
lval adjusted: R|kotlin/collections/List<UsageInfo>?| = when () {
|
||||
(R|<local>/element| is R|KtParameter|) -> {
|
||||
R|<local>/usages|.R|/filterNot|<R|UsageInfo|>(<L> = filterNot@fun <anonymous>(it: R|UsageInfo|): R|kotlin/Boolean| {
|
||||
^ (R|<local>/it|.R|/UsageInfo.usage| is R|KtLightMethod|)
|
||||
}
|
||||
)
|
||||
}
|
||||
else -> {
|
||||
R|<local>/usages|.R|/toList|<R|UsageInfo|>()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user