remove support for 'trait' keyword
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user