You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import"core:fmt"
add :: proc (a, b: $T) -> T {
return a + b
}
sum := add
main :: proc() {
fmt.println(sum(1, 2))
}
The text was updated successfully, but these errors were encountered:
blob1807
changed the title
Assigning a poly proc to a global causes complier assertion
Assigning a poly proc to a global var causes complier assertion
Dec 13, 2024
Context
Expected Behavior
I would assume this shouldn't be allowed in the first place cause you're not resolving the poly at the decloration.
Current Behavior
Running the given code the complier crashes with a
src\check_expr.cpp(468): Assertion Failure: `base_entity->kind == Entity_Procedure`
Odin/src/check_expr.cpp
Line 468 in 0a29d36
Steps to Reproduce
The text was updated successfully, but these errors were encountered: