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

static extension "@:using" seems doesn't work on abstract #7930

Closed
R32 opened this issue Mar 6, 2019 · 1 comment
Closed

static extension "@:using" seems doesn't work on abstract #7930

R32 opened this issue Mar 6, 2019 · 1 comment

Comments

@R32
Copy link
Contributor

R32 commented Mar 6, 2019

//using App;      // this works as except

@:using(App)
abstract Foo(Int) to Int {
	public inline function new(i) this = i;
}
class App {
	static function main() {
		var f = new Foo(101);
		trace(f.toInt());  //will get error: Foo has no field toInt
	}
	static function toInt(f:Foo):Int return f;
}
@Gama11
Copy link
Member

Gama11 commented Apr 18, 2019

#8188

@Gama11 Gama11 closed this as completed Apr 18, 2019
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

2 participants