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

Disabled polymorphic procedure error for different parameter types #4045

Open
thetarnav opened this issue Aug 8, 2024 · 0 comments
Open

Comments

@thetarnav
Copy link
Contributor

thetarnav commented Aug 8, 2024

@(disabled=true)
foo :: proc (a: $T) {}

main :: proc () {
	foo(int{})
	foo(f64{}) // Cannot assign value 'f64{}' of type 'f64' to 'int' in procedure argument
}

Error disappears after removing the disabled attribute

report

	Odin:    dev-2024-08:f32892993
	OS:      Ubuntu 22.04.4 LTS, Linux 6.5.0-45-generic
	CPU:     Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
	RAM:     7631 MiB
	Backend: LLVM 17.0.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants