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

Allow @:using with Class and Enum #11553

Merged
merged 1 commit into from Feb 7, 2024
Merged

Allow @:using with Class and Enum #11553

merged 1 commit into from Feb 7, 2024

Conversation

Simn
Copy link
Member

@Simn Simn commented Feb 6, 2024

There might be corner cases I'm not thinking of.

Closes #10106

@skial skial mentioned this pull request Feb 6, 2024
1 task
@Simn
Copy link
Member Author

Simn commented Feb 7, 2024

Notably, I consider #7453 resolved with this:

// MyMacroTools.hx
import haxe.macro.Expr;

class MyMacroTools {
	static public macro function getVersion(c:ExprOf<Class<Main>>) {
		return macro 1;
	}
}
// Main.hx
@:using(MyMacroTools)
class Main {
	static function main() {
		trace(Main.getVersion());
	}
}

@Simn Simn merged commit a45316c into development Feb 7, 2024
110 checks passed
@Simn Simn deleted the static_meta_using branch February 7, 2024 16:11
@kLabz kLabz added this to the 4.3 Hotfix candidates milestone Feb 8, 2024
@kLabz kLabz mentioned this pull request Feb 18, 2024
19 tasks
kLabz pushed a commit that referenced this pull request Feb 18, 2024
@kLabz kLabz removed this from the 4.3 Hotfix candidates milestone Feb 18, 2024
kLabz added a commit to kLabz/haxe that referenced this pull request Feb 18, 2024
kLabz pushed a commit that referenced this pull request Mar 4, 2024
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

Successfully merging this pull request may close these issues.

@:using not working as intended when handling Class<> and Enum<>
2 participants