Closed awwdev closed 2 years ago
Odin dev-2021-09:e2f035d6 Windows, Linux
dev-2021-09:e2f035d6
Seems like enum + #any_int + $T don't play together. Example:
enum
#any_int
$T
Foo :: enum { A } bar :: proc(#any_int n: int, $T: typeid) {} bar(Foo.A, f32)
Odin\src\llvm_backend_proc.cpp(6): Assertion Failure: entity->flags & EntityFlag_ProcBodyChecked
It works without the generic:
Foo :: enum { A } bar :: proc(#any_int n: int) {} bar(Foo.A) //no generic
It works without the enum:
bar :: proc(#any_int n: int, $T: typeid) {} bar(int, f32) //no enum
I will close this Issue because it no longer triggers the compiler assertion but builds+runs fine. Tested with dev-2022-05:d1fc9d30.
dev-2022-05:d1fc9d30
@awwdev Thank you for closing loads of things!
Odin
dev-2021-09:e2f035d6
Windows, LinuxSeems like
enum
+#any_int
+$T
don't play together. Example:Odin\src\llvm_backend_proc.cpp(6): Assertion Failure: entity->flags & EntityFlag_ProcBodyChecked
It works without the generic:
It works without the enum: