Pārlūkot izejas kodu

Fix #1992 `size_of` a relative slice crashes the compiler

gingerBill 3 gadi atpakaļ
vecāks
revīzija
b1dafcfe6d
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/check_expr.cpp

+ 1 - 0
src/check_expr.cpp

@@ -9586,6 +9586,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
 	case Ast_MapType:
 	case Ast_BitSetType:
 	case Ast_MatrixType:
+	case Ast_RelativeType:
 		o->mode = Addressing_Type;
 		o->type = check_type(c, node);
 		break;