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

29 lines
365 B
Plaintext
Raw Normal View History

2013-11-23 14:55:05 -08:00
class Foo {
construct new() {}
def set(a, b, c, d, e) {
2013-11-23 14:55:05 -08:00
_a = a
_b = b
_c = c
_d = d
_e = e
}
2013-12-23 11:17:40 -08:00
def write {
System.print(_a)
System.print(_b)
System.print(_c)
System.print(_d)
System.print(_e)
2013-11-23 14:55:05 -08: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