Skip to content

Instantly share code, notes, and snippets.

@preslavrachev
Created September 7, 2012 15:56
Show Gist options
  • Save preslavrachev/3667380 to your computer and use it in GitHub Desktop.
Save preslavrachev/3667380 to your computer and use it in GitHub Desktop.
class TestClass {
var a:String;
public function new() {
this.p = "test1";
}
}
....
var testObj = new TestClass();
trace(testObj.a); // => "test"
testObj.b = "test2" //the compile will complain
testObj.c = function() { // the compiler will complain
return "test3";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment