@@ -1,4 +1,6 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
|
||||
getter {
|
||||
IO.print("getter")
|
||||
}
|
||||
@@ -13,6 +15,8 @@ class Foo {
|
||||
}
|
||||
|
||||
class Bar is Foo {
|
||||
construct new() {}
|
||||
|
||||
test {
|
||||
getter // expect: getter
|
||||
setter = "value" // expect: setter
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
|
||||
getter {
|
||||
IO.print("getter")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
|
||||
bar { "getter" }
|
||||
|
||||
test {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
|
||||
bar=(value) {
|
||||
IO.print("setter")
|
||||
return value
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class Outer {
|
||||
construct new() {}
|
||||
|
||||
getter {
|
||||
IO.print("outer getter")
|
||||
}
|
||||
@@ -17,6 +19,8 @@ class Outer {
|
||||
method("arg") // expect: outer method
|
||||
|
||||
class Inner {
|
||||
construct new() {}
|
||||
|
||||
getter {
|
||||
IO.print("inner getter")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user