Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/properties.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

33 lines
1.0 KiB
Plaintext
Vendored

FILE: properties.kt
public final class A : R|kotlin/Any| {
public constructor(): R|A| {
super<R|kotlin/Any|>()
}
public final val bar: R|kotlin/Int| = Int(1)
public get(): R|kotlin/Int|
}
public final val bar: R|kotlin/Int| = Int(1)
public get(): R|kotlin/Int|
public final val R|A|.baz: R|kotlin/Int|
public get(): R|kotlin/Int| {
^ Int(1)
}
public final fun foo1(x: R|() -> kotlin/Int|): R|kotlin/Unit| {
}
public final fun foo2(x: R|(A) -> kotlin/Int|): R|kotlin/Unit| {
}
public final fun <R> foo3(x: R|() -> R|): R|kotlin/Unit| {
}
public final fun <T, R> foo4(x: R|(T) -> R|): R|kotlin/Unit| {
}
public final fun main(): R|kotlin/Unit| {
R|/foo1|(::R|/bar|)
R|/foo2|(Q|A|::R|/A.bar|)
R|/foo2|(Q|A|::R|/baz|)
R|/foo3|<R|kotlin/Int|>(::R|/bar|)
R|/foo4|<R|A|, R|kotlin/Int|>(Q|A|::R|/A.bar|)
R|/foo4|<R|A|, R|kotlin/Int|>(Q|A|::R|/baz|)
}