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

Recursive inline is not supported on enum abstract constructor #11177

Closed
Tracked by #11707
RblSb opened this issue Apr 23, 2023 · 4 comments
Closed
Tracked by #11707

Recursive inline is not supported on enum abstract constructor #11177

RblSb opened this issue Apr 23, 2023 · 4 comments

Comments

@RblSb
Copy link
Member

RblSb commented Apr 23, 2023

This is separated files:

class Main {
	static function main():Void {
		// 1. Open Main.hx and Buttons.hx in VSCode
		// 2. Check Buttons.hx tab to run diagnostics on it
		// 3. Change Main.hx trace below and run build task
		// 4. Check Buttons.hx: there is error now
		trace("change this line");
	}
}

class Buttons {
	static function init(main:Main):Void {
		// Recursive inline is not supported
		trace(KeyCode.Backspace);
	}
}

enum abstract KeyCode(Int) {
	var Backspace = 8;
}

--class-path src
--main Main
--interp

Regression since 4.2.5. Happens on 4.3.0 and dev. Project:
RecursiveEnum.zip

@RblSb
Copy link
Member Author

RblSb commented Apr 29, 2023

Regression is older than 737af26. There is no dev builds to easily check older ones...

@kLabz kLabz self-assigned this Apr 29, 2023
@kLabz
Copy link
Contributor

kLabz commented May 12, 2023

Bisected to 7321f188b 😨

@RblSb
Copy link
Member Author

RblSb commented Nov 21, 2023

Fixed in #11220, but test needed

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