Files
wren/test/static_field/in_instance_method.wren
T

26 lines
317 B
Plaintext
Raw Normal View History

2014-01-19 13:01:51 -08:00
class Foo {
set(a, b, c, d, e) {
__a = a
__b = b
__c = c
__d = d
__e = e
}
write {
IO.print(__a)
IO.print(__b)
IO.print(__c)
IO.print(__d)
IO.print(__e)
}
}
(new Foo).set(1, 2, 3, 4, 5)
(new Foo).write
// expect: 1
// expect: 2
// expect: 3
// expect: 4
// expect: 5