mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-17 00:11:25 -07:00
Fix overloading bug due to comparison of named types
This commit is contained in:
+1
-4
@@ -183,10 +183,7 @@ i64 check_distance_between_types(Checker *c, Operand *operand, Type *type) {
|
||||
|
||||
// TODO(bill): Should I allow this implicit conversion at all?!
|
||||
// rawptr <- ^T
|
||||
if (is_type_rawptr(dst) && is_type_pointer(src)) {
|
||||
if (dst != type) {
|
||||
return -1;
|
||||
}
|
||||
if (are_types_identical(type, t_rawptr) && is_type_pointer(src)) {
|
||||
return 5;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user