Drop traits with required classes

#KT-4771 Rejected
This commit is contained in:
Alexander Udalov
2015-06-16 23:40:25 +03:00
parent dc909ba1d4
commit 1a3209e1dc
63 changed files with 49 additions and 1109 deletions
+3 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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