mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -04:00
Add unselector_expr
This commit is contained in:
1 parent
584dffea14
commit
105de7705a
6 files changed
+23
-22
No files matched your search
+1
-4
@@ -1353,10 +1353,7 @@ void check_is_expressible(Checker *c, Operand *o, Type *type) {
|
||||
|
||||
bool check_is_not_addressable(Checker *c, Operand *o) {
|
||||
if (o->mode == Addressing_OptionalOk) {
|
||||
AstNode *expr = unparen_expr(o->expr);
|
||||
while (expr->kind == AstNode_SelectorExpr) {
|
||||
expr = expr->SelectorExpr.selector;
|
||||
}
|
||||
AstNode *expr = unselector_expr(o->expr);
|
||||
if (expr->kind != AstNode_TypeAssertion) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user