Files
wren/test/field/nested_class.wren
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

19 lines
287 B
Plaintext

class Outer {
method {
_field = "outer"
IO.print(_field) // expect: outer
class Inner {
method {
_field = "inner"
IO.print(_field) // expect: inner
}
}
(new Inner).method
IO.print(_field) // expect: outer
}
}
(new Outer).method