Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/postponedResolveOfManyCallableReference.fir.txt
T
Dmitriy Novozhilov e6b5cb5216 [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
2020-12-16 19:52:25 +03:00

21 lines
753 B
Plaintext
Vendored

FILE: postponedResolveOfManyCallableReference.kt
public abstract interface A : R|kotlin/Any| {
}
public abstract interface B : R|kotlin/Any| {
}
public final fun foo(i: R|A|): R|kotlin/Unit| {
}
public final fun foo(b: R|B|): R|kotlin/Unit| {
}
public final fun <T> bar1(f: R|(T) -> kotlin/Unit|): R|T| {
^bar1 R|kotlin/TODO|()
}
public final fun <T> bar2(f: R|(T) -> kotlin/Unit|, e: R|T|): R|kotlin/Unit| {
}
public final fun test(a: R|A|, b: R|B|): R|kotlin/Unit| {
lval expectedType1: R|A| = R|/bar1|<R|A|>(::R|/foo|)
lval expectedType2: R|B| = R|/bar1|<R|B|>(::R|/foo|)
R|/bar2|<R|A|>(::R|/foo|, R|<local>/a|)
R|/bar2|<R|B|>(::R|/foo|, R|<local>/b|)
}