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,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) {