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

parser: fn type declaration does not check already registered name #20732

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Feb 4, 2024

Fix #20730

@[translated]
module vnkxcb

type Nk_size = u32

union Nk_handle {
	ptr voidptr
	id int
}

enum Nk_plugin_alloc {
	nk_tree_node
	nk_tree_tab
}

type Nk_plugin_alloc = fn (Nk_handle, voidptr, Nk_size) voidptr // already registered name as Enum below

@felipensp felipensp marked this pull request as ready for review February 4, 2024 21:07
Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit bad436c into vlang:master Feb 6, 2024
54 checks passed
@odiroot
Copy link

odiroot commented Feb 6, 2024

That was super fast, thank you :)

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.

V formatter panics on code generated by C2V
3 participants