mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-23 07:57:52 +00:00
Fix parsing for block/if expression within if/for/etc. statements
This commit is contained in:
@@ -203,6 +203,11 @@ i64 check_distance_between_types(Checker *c, Operand *operand, Type *type) {
|
||||
}
|
||||
}
|
||||
|
||||
// if (is_type_proc(dst)) {
|
||||
// if (are_types_identical(src, dst)) {
|
||||
// return 1;
|
||||
// }
|
||||
// }
|
||||
|
||||
if (is_type_any(dst)) {
|
||||
// NOTE(bill): Anything can cast to `Any`
|
||||
|
||||
Reference in New Issue
Block a user