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

Fix bug: 'import' functions cannot get a body at the same time #2618

Merged

Conversation

fernewelten
Copy link
Contributor

Fixes #2617

The compiler didn't catch functions that are declared import and at the same time get a body. This is an error.

Example:

import int Func()   // ←'import' keyword
{    // ← function has a body
    return 0;
}

Add a Googletest that checks that this is now illegal.

@ivan-mogilko ivan-mogilko merged commit dcf1f52 into adventuregamestudio:ags4 Dec 12, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants