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

Crash set interface #524

Open
ncannasse opened this issue Mar 2, 2022 · 0 comments
Open

Crash set interface #524

ncannasse opened this issue Mar 2, 2022 · 0 comments

Comments

@ncannasse
Copy link
Member

The following example crash the VM:

interface I {
	public var __next(default, set) : I;
}

class Main implements I {

	public var bits = 0;
	public var __next(default, set) : I;

	function set___next(v:I) {
		return __next = v;
	}

	function new() {
	}

	static function foo( m : I ) {
		m.__next = m;
	}

	static function main() {
		var o = new Main();
		foo(o);
		o.__next.__next = o;
	}

}
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