Skip to content
New issue

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

@:forward sugar not working for abstracts #32

Open
kevinresol opened this issue May 20, 2019 · 1 comment
Open

@:forward sugar not working for abstracts #32

kevinresol opened this issue May 20, 2019 · 1 comment

Comments

@kevinresol
Copy link
Member

Because in tink_macro getFields for abstract is not implemented

@kevinresol
Copy link
Member Author

Snippet:

@:tink
class Main {
    
    // uncomment either one of the following
    // @:forward var a:Abs; // fail
    // @:forward var c:Cls; // ok
    
    public static function main() {
	   var m = new Main();
       trace(m.stringify());
   }
   
   function new() {}
}

abstract Abs(Int) {
    public function stringify() return 'foo';
}

class Cls {
    public function stringify() return 'foo';
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant