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

46 lines
1.4 KiB
Plaintext
Vendored

FILE: methodOfAnyImplementedInInterface.kt
public abstract interface A : R|kotlin/Any| {
public open override fun toString(): R|kotlin/String| {
^toString String(Hello)
}
public open override operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean| {
^equals Boolean(true)
}
public open override fun hashCode(): R|kotlin/Int| {
^hashCode Int(42)
}
}
public abstract interface B : R|kotlin/Any| {
public abstract override fun toString(): R|kotlin/String|
public abstract override operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean|
public abstract override fun hashCode(): R|kotlin/Int|
}
public abstract interface C : R|kotlin/Any| {
public open override operator fun toString(): R|kotlin/String| {
^toString String(Rest)
}
public open override operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean| {
^equals Boolean(false)
}
public open override operator fun hashCode(): R|kotlin/Int| {
^hashCode Int(2)
}
}
public abstract interface D : R|kotlin/Any| {
public abstract override operator fun toString(): R|kotlin/String|
public abstract override operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean|
public abstract override operator fun hashCode(): R|kotlin/Int|
}