Files
wren/test/class/name_inside_body.wren
T
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

15 lines
208 B
Plaintext

class Foo {
static sayName {
IO.print(Foo.toString)
}
sayName {
IO.print(Foo.toString)
}
static toString { return "Foo!" }
}
Foo.sayName // expect: Foo!
(new Foo).sayName // expect: Foo!