[FIR] Add diagnostic CONFLICTING_OVERLOADS & REDECLARATION
This commit is contained in:
+2
-2
@@ -54,9 +54,9 @@ class Case2() {
|
||||
* TESTCASE NUMBER: 3
|
||||
* NOTE: check abstract member cannot be accessed directly
|
||||
*/
|
||||
class Case3(override val boo: String) : BaseCase3() {
|
||||
class Case3(<!REDECLARATION!>override val boo: String<!>) : BaseCase3() {
|
||||
override val zoo: String = super.<!ABSTRACT_SUPER_CALL!>foo<!>()
|
||||
override val boo: String = super.<!ABSTRACT_SUPER_CALL!>boo<!>
|
||||
<!REDECLARATION!>override val boo: String = super.<!ABSTRACT_SUPER_CALL!>boo<!><!>
|
||||
override val value: String = super.<!ABSTRACT_SUPER_CALL!>zoo<!>
|
||||
val hoo: String = super.<!ABSTRACT_SUPER_CALL!>zoo<!>
|
||||
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ class Case2() {
|
||||
fun foo(vararg x: Int?): Unit = TODO() // (1.2)
|
||||
|
||||
fun case(){
|
||||
foo(1, 1)
|
||||
<!AMBIGUITY!>foo<!>(1, 1)
|
||||
}
|
||||
}
|
||||
// TESTCASE NUMBER: 3
|
||||
@@ -27,7 +27,7 @@ class Case3() {
|
||||
fun foo(vararg x: Int?): Unit = TODO() // (1.2)
|
||||
|
||||
fun case(){
|
||||
foo(1, 1)
|
||||
<!AMBIGUITY!>foo<!>(1, 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// TESTCASE NUMBER: 1
|
||||
fun case_1(vararg x: Int?) {
|
||||
if (x != null) {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.IntArray & kotlin.IntArray")!>x<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Array<out kotlin.Int?> & kotlin.Array<out kotlin.Int?>")!>x<!>
|
||||
x[0]
|
||||
}
|
||||
}
|
||||
@@ -21,8 +21,8 @@ fun case_2(vararg x: Int?) {
|
||||
|
||||
x[0].also {
|
||||
if (it != null) {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int & kotlin.Int")!>it<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int & kotlin.Int")!>it<!>.inv()
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int & kotlin.Int?")!>it<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int & kotlin.Int?")!>it<!>.inv()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user