16 lines
240 B
Plaintext
16 lines
240 B
Plaintext
// シンプルなinit構文テスト
|
|
box Test {
|
|
init { value }
|
|
|
|
init(testValue) {
|
|
me.value = testValue
|
|
}
|
|
|
|
getValue() {
|
|
return me.value
|
|
}
|
|
}
|
|
|
|
local t
|
|
t = new Test("Hello init!")
|
|
print(t.getValue()) |