aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-04 22:42:41 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-04 22:42:41 +0100
commit82696179e8b48a78f7cad2d4b43e0b8a7281f47a (patch)
tree5ef1612462ab90a1bcdca267d3f08822e98037b7 /src/check_expr.cpp
parent188bc28f6a06a29a117b36c9e8c45f0fe08465c7 (diff)
parent240da5c8e047acf14802fe1fc2a9d93fc374ca72 (diff)
Merge branch 'master' of https://github.com/gingerBill/Odin
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 38c1a0477..586979f90 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -345,6 +345,17 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n
if (operand->mode == Addressing_Invalid) {
return;
}
+ #if 0
+ if (operand->mode == Addressing_Type) {
+ Type *t = base_type(type);
+ if (t->kind == Type_Pointer &&
+ t->Pointer.elem == t_type_info) {
+ add_type_info_type(c, type);
+ return;
+ }
+ }
+ #endif
+
if (is_type_untyped(operand->type)) {
Type *target_type = type;
if (type == NULL || is_type_any(type)) {