Drop traits with required classes
#KT-4771 Rejected
This commit is contained in:
+3
-3
@@ -24,11 +24,11 @@ interface T2<T> {}
|
||||
interface Test<error>()</error> {
|
||||
}
|
||||
|
||||
interface Test1 : <warning>C2</warning><error>()</error> {}
|
||||
interface Test1 : <error>C2</error><error>()</error> {}
|
||||
|
||||
interface Test2 : <warning>C2</warning> {}
|
||||
interface Test2 : <error>C2</error> {}
|
||||
|
||||
interface Test3 : <warning>C2</warning>, <error>C3</error> {}
|
||||
interface Test3 : <error>C2</error>, <error>C3</error> {}
|
||||
|
||||
interface Test4 : T1 {}
|
||||
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
open class bar()
|
||||
|
||||
interface Foo<error>()</error> : <warning>bar</warning><error>()</error>, <error><error>bar</error></error>, <error><error>bar</error></error> {
|
||||
interface Foo<error>()</error> : <error>bar</error><error>()</error>, <error><error>bar</error></error>, <error><error>bar</error></error> {
|
||||
}
|
||||
|
||||
interface Foo2 : <warning>bar</warning>, Foo {
|
||||
interface Foo2 : <error>bar</error>, Foo {
|
||||
}
|
||||
|
||||
open class Foo1() : bar(), <error>bar</error>, Foo, <error>Foo</error>() {}
|
||||
open class Foo12 : bar(), <error>bar</error> {}
|
||||
open class Foo12 : bar(), <error>bar</error> {}
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
open class Base {
|
||||
}
|
||||
|
||||
interface Derived: <warning>Base</warning> {
|
||||
fun foo() {
|
||||
f1(this@Derived)
|
||||
}
|
||||
}
|
||||
|
||||
<error>class DerivedImpl</error>(): Derived {}
|
||||
<error>object ObjectImpl</error>: Derived {}
|
||||
|
||||
fun f1(b: Base) = b
|
||||
|
||||
// KT-3006
|
||||
Reference in New Issue
Block a user