From 790a517fa342f5e2ba1754ab3a16d1e02842b672 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 20 Apr 2020 12:53:34 +0300 Subject: [PATCH] [FIR TEST] Add bad test data (submitted KT-38400) --- .../withMethodOfAnyOverridenInInterface.fir.kt | 8 ++++++++ .../withMethodOfAnyOverridenInInterface.kt | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.fir.kt diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.fir.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.fir.kt new file mode 100644 index 00000000000..209e68c9f15 --- /dev/null +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.fir.kt @@ -0,0 +1,8 @@ +interface IWithToString { + override fun toString(): String +} + +class A : IWithToString { + // Should be Any#toString(), even though IWithToString defines an abstract toString. + override fun toString(): String = super.toString() +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.kt b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.kt index 38c2975daef..ba5f4f70298 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/unqualifiedSuper/withMethodOfAnyOverridenInInterface.kt @@ -1,4 +1,3 @@ -// FIR_IDENTICAL interface IWithToString { override fun toString(): String }