Skip to content

Fix AUTO keyword not giving variable asignment restrictions#515

Open
errgrab wants to merge 6 commits into
42school:masterfrom
errgrab:master
Open

Fix AUTO keyword not giving variable asignment restrictions#515
errgrab wants to merge 6 commits into
42school:masterfrom
errgrab:master

Conversation

@errgrab

@errgrab errgrab commented Oct 6, 2024

Copy link
Copy Markdown

When you assign variables using the auto keyword you don't have any of variable assignment restrictions.
Example:

int	main(void)
{
	auto int a = 0, b = 1;
	auto int c = 0, d = 1;
	auto int e = 0, f = 1;
}

@malallai

Copy link
Copy Markdown
Collaborator

Can you please add tests for this ? Thank you !

@errgrab

errgrab commented Jun 3, 2026

Copy link
Copy Markdown
Author

@malallai Sorry for taking so long. I think this test is enough. It's basically the example.

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.

3 participants