You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
class Test {
def field1 = 0
def field2 = 0
Test() {
// OK
(1..10).each {
field1 += it
}
println field1
// ReferenceError: "field2" is not defined.
for(def i = 1; i <= 10; i++) {
field2 += i
// OK
// this.field2 += i
}
println field2
}
}
new Test()
Grooscript is great! Thank you.
Best regards.
The text was updated successfully, but these errors were encountered:
Grooscript is great! Thank you.
Best regards.
The text was updated successfully, but these errors were encountered: