aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-10 23:28:53 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-10 23:28:53 +0100
commit115e6e7f9e79656e77a7c5d17df2f2624b69a1e9 (patch)
tree64704a2dea7c6594a856d4f5ce6a21ee51e035e2 /src/check_expr.cpp
parent3868a9a0f00185b6f8f587f67a62cbd12a215336 (diff)
Update demo for both subtyping and union based Entity
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index fab388d9f..5e87c080b 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3338,6 +3338,7 @@ bool check_is_castable_to(Checker *c, Operand *operand, Type *y) {
// Cast between pointers
if (is_type_pointer(src) && is_type_pointer(dst)) {
+ #if 0
Type *s = base_type(type_deref(src));
if (is_type_union(s)) {
// NOTE(bill): Should the error be here?!
@@ -3349,6 +3350,7 @@ bool check_is_castable_to(Checker *c, Operand *operand, Type *y) {
gb_string_free(xs);
return false;
}
+ #endif
return true;
}