remove support for 'trait' keyword
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
trait X {
|
||||
interface X {
|
||||
open fun fn() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
trait X {
|
||||
interface X {
|
||||
open fun fn() {}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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>)
|
||||
|
||||
+2
-2
@@ -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 { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user