@@ -1,4 +1,5 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
getClosure { Fn.new { toString } }
|
||||
toString { "Foo" }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class Outer {
|
||||
construct new() {}
|
||||
|
||||
method {
|
||||
IO.print(this) // expect: Outer
|
||||
|
||||
@@ -6,6 +8,8 @@ class Outer {
|
||||
IO.print(this) // expect: Outer
|
||||
|
||||
class Inner {
|
||||
construct new() {}
|
||||
|
||||
method {
|
||||
IO.print(this) // expect: Inner
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
getClosure { Fn.new { Fn.new { Fn.new { toString } } } }
|
||||
toString { "Foo" }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Foo {
|
||||
construct new() {}
|
||||
bar { this }
|
||||
baz { "baz" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user