Files
wren/test/api/value.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

15 lines
311 B
Plaintext

class Value {
foreign static def value=(value)
foreign static def value
}
Value.value = ["list", "of", "strings"]
// Do some stuff to trigger a GC (at least when GC stress testing enabled).
var s = "string"
for (i in 1...10) {
s = s + " more"
}
System.print(Value.value) // expect: [list, of, strings]