2013-11-23 14:55:05 -08:00
|
|
|
class Foo {
|
2015-12-18 06:59:49 -08:00
|
|
|
construct new() {}
|
2015-09-01 08:16:04 -07:00
|
|
|
|
2015-12-18 06:48:54 -08:00
|
|
|
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
|
|
|
|
2015-12-18 06:48:54 -08:00
|
|
|
def 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
|