Fix assertion in light tree diagnostic reporter
happened then two diagnostics are reported on the same element. #KT-55924 fixed
This commit is contained in:
committed by
Space Team
parent
3b9aac067a
commit
7ec72b568d
@@ -0,0 +1,6 @@
|
||||
-Xuse-fir-lt=true
|
||||
-language-version
|
||||
2.0
|
||||
$TESTDATA_DIR$/twoDiagnosticsOnSingleElement.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
interface I1 {
|
||||
fun <T> foo()
|
||||
}
|
||||
|
||||
interface I2 {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
class C : I1, I2
|
||||
@@ -0,0 +1,8 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.kt:11:1: error: class C is not abstract and does not implement abstract member foo
|
||||
class C : I1, I2
|
||||
^
|
||||
compiler/testData/cli/jvm/twoDiagnosticsOnSingleElement.kt:11:1: error: c inherits conflicting members: foo, foo
|
||||
class C : I1, I2
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user