Reserve 'typeof' as a keyword

This commit is contained in:
Alexey Tsvetkov
2015-12-09 18:37:31 +03:00
parent 4c3f620255
commit 199827635f
141 changed files with 1126 additions and 1102 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
//statement
int as, type, val, var, fun, is, in, object, when, yield;
int as, type, val, var, fun, is, in, object, when, yield, typeof;
+2 -1
View File
@@ -7,4 +7,5 @@ val `is`: Int
val `in`: Int
val `object`: Int
val `when`: Int
val `yield`: Int
val `yield`: Int
val `typeof`: Int
@@ -1,6 +1,6 @@
//file
package test;
import as.type.val.var.fun.is.in.object.when.yield;
import as.type.val.var.fun.is.in.object.when.yield.typeof;
class Test {}
@@ -1,6 +1,6 @@
// ERROR: Unresolved reference: `as`
package test
import `as`.type.`val`.`var`.`fun`.`is`.`in`.`object`.`when`.`yield`
import `as`.type.`val`.`var`.`fun`.`is`.`in`.`object`.`when`.`yield`.`typeof`
internal class Test