Files
wren/test/language/field/multiple.wren
T

29 lines
357 B
Plaintext
Raw Normal View History

2013-11-23 14:55:05 -08:00
class Foo {
2015-09-01 08:16:04 -07:00
construct new() {}
2013-11-23 14:55:05 -08:00
set(a, b, c, d, e) {
_a = a
_b = b
_c = c
_d = d
_e = e
}
2013-12-23 11:17:40 -08:00
2013-11-23 14:55:05 -08: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)
2013-11-23 14:55:05 -08:00
}
}
2015-07-10 09:18:22 -07:00
var foo = Foo.new()
2013-11-23 14:55:05 -08:00
foo.set(1, 2, 3, 4, 5)
foo.write
// expect: 1
// expect: 2
// expect: 3
// expect: 4
// expect: 5