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

Parapoly type specialization fails on bit_field types #3584

Closed
DragosPopse opened this issue May 13, 2024 · 0 comments
Closed

Parapoly type specialization fails on bit_field types #3584

DragosPopse opened this issue May 13, 2024 · 0 comments

Comments

@DragosPopse
Copy link
Contributor

minimal repo:

package main

Field :: bit_field u16 {
	a: int | 16,
}
Distinct_Field :: distinct Field

foo :: proc(f: $T/Field) {
	
}

main :: proc() {
	b: Field
	b.a = 23
	foo(b)
}

passing either Field or Distinct_Field will fail. Removing the /Field will make it work again.

The commit that created this behavior was 3f7a369

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

1 participant