We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testClass.x could not be evaluated
package; import flash.display.Sprite; class Main extends Sprite { public function new() { super(); var testClass: TestClass = new TestClass(); testClass.x = 20; trace(testClass.x); } }
package; class TestClass { private var _x: Int = 0; public var x(get, set):Int; public function new() { } private function get_x() { return this._x; } private function set_x(value) { return this._x = value; } }
The text was updated successfully, but these errors were encountered:
Found some solution - add @:flash.property metadata to field
package; class TestClass { private var _x: Int = 0; @:flash.property public var x(get, set):Int; public function new() { } private function get_x() { return this._x; } private function set_x(value) { return this._x = value; } }
Sorry, something went wrong.
No branches or pull requests
testClass.x could not be evaluated
The text was updated successfully, but these errors were encountered: