mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 19:02:13 +00:00
Merge branch 'master' into base-work
This commit is contained in:
@@ -2988,7 +2988,11 @@ gb_internal bool check_is_castable_to(CheckerContext *c, Operand *operand, Type
|
||||
}
|
||||
// proc <-> proc
|
||||
if (is_type_proc(src) && is_type_proc(dst)) {
|
||||
if (is_type_polymorphic(src) || is_type_polymorphic(dst)) {
|
||||
if (is_type_polymorphic(dst)) {
|
||||
if (is_type_polymorphic(src) &&
|
||||
operand->mode == Addressing_Variable) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user