Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Disabled polymorphic procedure error for different parameter types

Open thetarnav opened this issue 1 year ago • 0 comments

@(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

thetarnav avatar Aug 08 '24 21:08 thetarnav