Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCallInPresenseOfNonAbstractMethodInParent.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

38 lines
1.0 KiB
Plaintext
Vendored

FILE: abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt
public abstract interface IWithToString : R|kotlin/Any| {
public abstract override fun toString(): R|kotlin/String|
public abstract fun foo(): R|kotlin/String|
public abstract fun bar(): R|kotlin/String|
}
public open class B : R|kotlin/Any| {
public constructor(): R|B| {
super<R|kotlin/Any|>()
}
public open fun foo(): R|kotlin/String| {
^foo String()
}
}
public final class A : R|IWithToString|, R|B| {
public constructor(): R|A| {
super<R|B|>()
}
public final override fun toString(): R|kotlin/String| {
^toString this@R|/A|.super<R|B|>.R|kotlin/Any.toString|()
}
public final override fun foo(): R|kotlin/String| {
^foo this@R|/A|.super<R|B|>.R|/B.foo|()
}
public final override fun bar(): R|kotlin/String| {
^bar this@R|/A|.super<R|IWithToString|>.R|/IWithToString.bar|()
}
}