Files
wren/test/language/static_field/in_instance_method.wren
T

28 lines
363 B
Plaintext
Raw Normal View History

2014-01-19 13:01:51 -08:00
class Foo {
2015-09-01 08:16:04 -07:00
construct new() {}
2014-01-19 13:01:51 -08:00
set(a, b, c, d, e) {
__a = a
__b = b
__c = c
__d = d
__e = e
}
2015-07-10 09:18:22 -07:00
write() {
2015-09-15 07:46:09 -07:00
System.print(__a)
System.print(__b)
System.print(__c)
System.print(__d)
System.print(__e)
2014-01-19 13:01:51 -08:00
}
}
2015-07-10 09:18:22 -07:00
Foo.new().set(1, 2, 3, 4, 5)
Foo.new().write()
2014-01-19 13:01:51 -08:00
// expect: 1
// expect: 2
// expect: 3
// expect: 4
// expect: 5