Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.x
-
Any
Description
An inner class cannot directly access the inherited attributes of its container class.
To reproduce:
class Parent {
String name
}
class External extends Parent {
String outer
Internal inner(String p)
class Internal {
String inner
void boom()
}
}
new External(outer:"good", name:"fucked").inner("good").boom()