remove support for 'trait' keyword
This commit is contained in:
Vendored
+1
-1
@@ -18,7 +18,7 @@ public open class KotlinClass(public var field: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
public trait KotlinTrait {
|
||||
public interface KotlinTrait {
|
||||
public fun nullableFun(): String?
|
||||
public fun notNullableFun(): String
|
||||
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
//statement
|
||||
int as, type, val, var, fun, is, in, object, when, trait, This;
|
||||
int as, type, val, var, fun, is, in, object, when, This;
|
||||
@@ -7,5 +7,4 @@ val `is`: Int
|
||||
val `in`: Int
|
||||
val `object`: Int
|
||||
val `when`: Int
|
||||
val `trait`: Int
|
||||
val `This`: Int
|
||||
@@ -1,6 +1,6 @@
|
||||
//file
|
||||
package test;
|
||||
|
||||
import as.type.val.var.fun.is.in.object.when.trait.This;
|
||||
import as.type.val.var.fun.is.in.object.when.This;
|
||||
|
||||
class Test {}
|
||||
@@ -1,6 +1,6 @@
|
||||
// ERROR: Unresolved reference: `as`
|
||||
package test
|
||||
|
||||
import `as`.type.`val`.`var`.`fun`.`is`.`in`.`object`.`when`.`trait`.`This`
|
||||
import `as`.type.`val`.`var`.`fun`.`is`.`in`.`object`.`when`.`This`
|
||||
|
||||
internal class Test
|
||||
@@ -1,2 +1,2 @@
|
||||
//statement
|
||||
when(open, trait);
|
||||
when(open);
|
||||
@@ -1 +1 @@
|
||||
`when`(open, `trait`)
|
||||
`when`(open)
|
||||
Reference in New Issue
Block a user