| ... | @@ -1041,7 +1041,9 @@ pub fn fnProtoExpr( | ... | @@ -1041,7 +1041,9 @@ pub fn fnProtoExpr( |
| 1041 | assert(param_type_i == param_count); | 1041 | assert(param_type_i == param_count); |
| 1042 | } | 1042 | } |
| 1043 | | 1043 | |
| 1044 | assert(fn_proto.ast.align_expr == 0); // caught by the parser | 1044 | if (fn_proto.ast.align_expr != 0) { |
| | 1045 | return astgen.failNode(fn_proto.ast.align_expr, "TODO: AstGen: implement function prototypes with alignment expressions", .{}); |
| | 1046 | } |
| 1045 | assert(fn_proto.ast.section_expr == 0); // caught by the parser | 1047 | assert(fn_proto.ast.section_expr == 0); // caught by the parser |
| 1046 | | 1048 | |
| 1047 | const maybe_bang = tree.firstToken(fn_proto.ast.return_type) - 1; | 1049 | const maybe_bang = tree.firstToken(fn_proto.ast.return_type) - 1; |