Created
February 18, 2017 19:05
-
-
Save daharon/2798eac049a6e7ffeee45a9f2138e0b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abstract class Var | |
| class Default : Task() { | |
| val vars = object : Var { | |
| var directoryMode = "0750" | |
| } | |
| override val definitions = definition { | |
| directory("Create new directory") { | |
| mode = vars.directoryMode // <- Unresolved reference directoryMode | |
| } | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reason for the "Unresolved reference" is because the properties of anonymous classes are always private.