Main.hx 225 B

123456789101112131415
  1. abstract A(Int) from Int {
  2. public var x(get,set):Int;
  3. function get_x() return this;
  4. inline function set_x(value) return this = value;
  5. public function modify() {
  6. x += 3;
  7. }
  8. }
  9. class Main {
  10. static function main() {}
  11. }