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

Metadata attached to nothing #11389

Open
ibilon opened this issue Nov 18, 2023 · 1 comment
Open

Metadata attached to nothing #11389

ibilon opened this issue Nov 18, 2023 · 1 comment

Comments

@ibilon
Copy link
Member

ibilon commented Nov 18, 2023

This compiles:

function main() {}

@:native("")

There's not really a bug there, but a bit weird for a metadata to be allowed without being attached to a type/function/variable.

@Simn
Copy link
Member

Simn commented Nov 18, 2023

That's quite funny, I'm almost inclined to declare it a feature. But yes, we should check this at the end of parsing I suppose.

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