test for obsolete kt302
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
// KT-302 Report an error when inheriting many implementations of the same member
|
||||||
|
|
||||||
|
namespace kt302
|
||||||
|
|
||||||
|
trait A {
|
||||||
|
open fun foo() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
trait B {
|
||||||
|
open fun foo() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
class <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>C<!> : A, B {} //should be error here
|
||||||
Reference in New Issue
Block a user