mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
26 lines
319 B
Plaintext
26 lines
319 B
Plaintext
|
|
class Foo {
|
||
|
|
static set(a, b, c, d, e) {
|
||
|
|
__a = a
|
||
|
|
__b = b
|
||
|
|
__c = c
|
||
|
|
__d = d
|
||
|
|
__e = e
|
||
|
|
}
|
||
|
|
|
||
|
|
static write {
|
||
|
|
IO.print(__a)
|
||
|
|
IO.print(__b)
|
||
|
|
IO.print(__c)
|
||
|
|
IO.print(__d)
|
||
|
|
IO.print(__e)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
Foo.set(1, 2, 3, 4, 5)
|
||
|
|
Foo.write
|
||
|
|
// expect: 1
|
||
|
|
// expect: 2
|
||
|
|
// expect: 3
|
||
|
|
// expect: 4
|
||
|
|
// expect: 5
|