remove support for 'trait' keyword

This commit is contained in:
Dmitry Jemerov
2015-09-18 16:17:02 +02:00
parent 86833c1a74
commit 4ca434da54
217 changed files with 705 additions and 821 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
trait Foo{
interface Foo{
public fun foo() : Foo
public fun s() : String
public val prop : String
+1 -1
View File
@@ -1,4 +1,4 @@
trait T {
interface T {
fun fromTrait() = ""
}
+1 -1
View File
@@ -1,4 +1,4 @@
trait I
interface I
object O : I
+1 -1
View File
@@ -1,6 +1,6 @@
package p
trait T {
interface T {
object Null : T { }
object Other {}
+1 -1
View File
@@ -1,4 +1,4 @@
trait Foo{
interface Foo{
fun foo1() : String
fun foo2() : Object
val prop : String
+1 -1
View File
@@ -1,4 +1,4 @@
trait Foo
interface Foo
var a : Foo = <caret>
@@ -1,4 +1,4 @@
trait Foo
interface Foo
var a : Foo = o<caret>
@@ -1,4 +1,4 @@
trait T
interface T
class C {
inner class Inner1(s: String) : T
@@ -1,5 +1,5 @@
trait X
trait Y
interface X
interface Y
fun X.iterator(): Y
fun Y.next(): Int
@@ -1,6 +1,6 @@
trait X
trait Y: X
trait Z
interface X
interface Y: X
interface Z
fun foo(p1: Collection<X>, p2: Collection<Y>, p3: Collection<Z>, p4: Collection<X?>) {
for (i: X in <caret>)
@@ -1,8 +1,8 @@
import java.util.ArrayList
trait A
trait B : A
trait C
interface A
interface B : A
interface C
fun foo(a: A, cA: Collection<A>, cB: Collection<B>, cC: Collection<C>, cAny: Collection<Any>,
lA: List<A>, lb: List<B>, lC: List<C>, lAny: List<Any>,
+3 -3
View File
@@ -1,6 +1,6 @@
trait A
trait B : A
trait C
interface A
interface B : A
interface C
fun foo(a: A){}
fun foo(c: C){}
+3 -3
View File
@@ -1,6 +1,6 @@
trait A
trait B : A
trait C
interface A
interface B : A
interface C
fun foo(a: A?){}
fun foo(c: C?){}
+3 -3
View File
@@ -1,6 +1,6 @@
trait A
trait B : A
trait C
interface A
interface B : A
interface C
fun foo(a: A){}
fun foo(c: C){}
+3 -3
View File
@@ -1,6 +1,6 @@
trait A
trait B : A
trait C
interface A
interface B : A
interface C
fun foo(a: A){}
fun foo(c: C){}
@@ -1,6 +1,6 @@
trait X
trait Y : X
trait Z
interface X
interface Y : X
interface Z
fun X.contains(s: String): Boolean
@@ -1,12 +1,12 @@
trait X {
interface X {
fun contains(s: String): Boolean
}
trait Y {
interface Y {
fun contains(i: Int): Boolean
}
trait Z {
interface Z {
fun contains(o: Any): Boolean
}
@@ -1,8 +1,8 @@
trait X<T> {
interface X<T> {
fun contains(t: T): Boolean
}
trait A {
interface A {
fun<T> createX(t: T): X<T>
fun foo(s: String) {
@@ -1,8 +1,8 @@
trait X<T>
interface X<T>
fun<T> X<T>.contains(t: T): Boolean
trait A {
interface A {
fun<T> createX(t: T): X<T>
fun foo(s: String) {
@@ -1,4 +1,4 @@
trait X {
interface X {
fun contains(s: String): Boolean?
}
+1 -1
View File
@@ -1,4 +1,4 @@
trait T
interface T
open class A : T