From 0f76c22c463f678f8e681e754c8fe0acf718546c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 12 May 2024 17:48:06 +0100 Subject: [PATCH] Check for illegal use of `distinct` --- src/check_expr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index f0c33d9d8..08f488642 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -10788,6 +10788,7 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast return Expr_Expr; case_end; + case Ast_DistinctType: case Ast_TypeidType: case Ast_PolyType: case Ast_ProcType: