mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
29 lines
365 B
Plaintext
29 lines
365 B
Plaintext
class Foo {
|
|
construct new() {}
|
|
|
|
def set(a, b, c, d, e) {
|
|
_a = a
|
|
_b = b
|
|
_c = c
|
|
_d = d
|
|
_e = e
|
|
}
|
|
|
|
def write {
|
|
System.print(_a)
|
|
System.print(_b)
|
|
System.print(_c)
|
|
System.print(_d)
|
|
System.print(_e)
|
|
}
|
|
}
|
|
|
|
var foo = Foo.new()
|
|
foo.set(1, 2, 3, 4, 5)
|
|
foo.write
|
|
// expect: 1
|
|
// expect: 2
|
|
// expect: 3
|
|
// expect: 4
|
|
// expect: 5
|