"this" expressions.

This commit is contained in:
Bob Nystrom
2013-11-09 15:42:23 -08:00
parent 0cc5524249
commit a1f10786ef
6 changed files with 76 additions and 38 deletions
+1
View File
@@ -0,0 +1 @@
this // expect error
+6
View File
@@ -0,0 +1,6 @@
class Foo {
bar { this }
baz { "baz" }
}
Foo.new.bar.baz
+3
View File
@@ -0,0 +1,3 @@
fn {
this // expect error
}
+1
View File
@@ -0,0 +1 @@
var this = "value" // expect error