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 X {
interface X {
open fun fn() {}
}
@@ -1,4 +1,4 @@
trait X {
interface X {
open fun fn() {}
}
@@ -1,3 +1,3 @@
public trait Comparator<T> {
public interface Comparator<T> {
public fun compare(var1: T, var2: T): Int
}
@@ -1,4 +1,4 @@
trait Foo
interface Foo
var a : Foo = <caret>
@@ -1,4 +1,4 @@
trait Foo
interface Foo
var a : Foo = object: Foo {<caret>}
+1 -1
View File
@@ -1,4 +1,4 @@
trait Foo
interface Foo
fun foo(f: Foo, i: Int){}
@@ -1,4 +1,4 @@
trait Foo
interface Foo
fun foo(f: Foo, i: Int){}
@@ -4,9 +4,9 @@ fun test() {
registerHandler(<caret>)
}
trait Message
interface Message
trait Handler<E> {
interface Handler<E> {
fun handle(e: E)
}
@@ -8,9 +8,9 @@ fun test() {
})
}
trait Message
interface Message
trait Handler<E> {
interface Handler<E> {
fun handle(e: E)
}
@@ -1,8 +1,8 @@
class `class`<T>
trait `trait`
interface `interface`
fun foo(p: `class`<`trait`>){}
fun foo(p: `class`<`interface`>){}
fun f(){
foo(<caret>)
@@ -1,8 +1,8 @@
class `class`<T>
trait `trait`
interface `interface`
fun foo(p: `class`<`trait`>){}
fun foo(p: `class`<`interface`>){}
fun f(){
foo(`class`())<caret>
@@ -1,5 +1,5 @@
trait X
trait Y
interface X
interface Y
fun X.iterator(): Y
fun Y.next(): Int
@@ -1,5 +1,5 @@
trait X
trait Y
interface X
interface Y
fun X.iterator(): Y
fun Y.next(): Int
@@ -1,5 +1,5 @@
trait X
trait Y
interface X
interface Y
fun X.iterator(): Y
fun Y.next(): Int
@@ -1,5 +1,5 @@
trait X
trait Y
interface X
interface Y
fun X.iterator(): Y
fun Y.next(): Int
@@ -1,7 +1,7 @@
package p
class Outer {
trait T {
interface T {
object Null : T { }
}
}
@@ -1,7 +1,7 @@
package p
class Outer {
trait T {
interface T {
object Null : T { }
}
}