Files
wren/test/language/field/multiple.wren
Bob Nystrom eff4485a56 Clean up definition syntax:
- Don't use "def" on constructors.
- Put "foreign" and "static" before "def".
2015-12-18 06:59:49 -08:00

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