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
@@ -2,7 +2,7 @@ fun foo(p: Iterable<D>) {
p.filter { it.<caret> }
}
trait D {
interface D {
fun bar()
}
@@ -1,8 +1,8 @@
trait T1 {
interface T1 {
fun inT1(){}
}
trait T2 {
interface T2 {
fun inT2(){}
}
@@ -10,7 +10,7 @@ open class C {
}
}
trait T
interface T
// EXIST: { itemText: "extFunForT", attributes: "bold" }
// EXIST: { itemText: "extFunForC", attributes: "bold" }
@@ -1,4 +1,4 @@
trait T {
interface T {
fun fromTrait(){}
}
@@ -1,4 +1,4 @@
trait T {
interface T {
fun fromTrait(){}
}
@@ -1,4 +1,4 @@
trait T {
interface T {
fun f(){}
}
@@ -1,4 +1,4 @@
trait T {
interface T {
fun foo1(){}
fun foo2(){}
}
@@ -1,6 +1,6 @@
fun globalFun(){}
trait T {
interface T {
fun fromTrait(){}
}
@@ -1,4 +1,4 @@
trait I<T>
interface I<T>
fun <E, T : I<E>> T.ext() : T = this
@@ -1,8 +1,8 @@
trait A {
interface A {
fun foo(): Int
}
trait B: A {
interface B: A {
override fun foo(): Int
override fun foo1(): Int
}
@@ -1,4 +1,4 @@
trait Expr
interface Expr
class Num(val value : Int) : Expr
fun eval(e : Expr) {
@@ -1,4 +1,4 @@
trait Expr {
interface Expr {
public fun testThis() {
if (this is Num) {
this.<caret>
@@ -1,4 +1,4 @@
trait Expr
interface Expr
class Sum(val left : Expr, val right : Expr) : Expr
fun evalWhen(e : Expr) : Int = when (e) {
@@ -1,4 +1,4 @@
trait Trait<T>
interface Trait<T>
fun<T> Trait<T>.extension(t: T): T = t
@@ -1,6 +1,6 @@
package first
trait TestedTrait() {
interface TestedTrait() {
}
fun firstFun() {