Fields in closures.

This commit is contained in:
Bob Nystrom
2013-12-23 11:17:40 -08:00
parent c0169896e6
commit 9235a7e38f
7 changed files with 128 additions and 23 deletions
+1 -4
View File
@@ -6,6 +6,7 @@ class Foo {
_d = d
_e = e
}
write {
IO.write(_a)
IO.write(_b)
@@ -23,7 +24,3 @@ foo.write
// expect: 3
// expect: 4
// expect: 5
// TODO: Trying to get or set a field outside of a class.
// TODO: Fields in nested classes.
// TODO: Closing over fields.