Commit 3a02ba9b82

Andrew Kelley <superjoe30@gmail.com>
2018-08-24 05:22:48
fix error message for incorrect panic handler fn signature
closes #1353
1 parent 6c064cf
Changed files (1)
src/analyze.cpp
@@ -3035,7 +3035,7 @@ static bool scope_is_root_decls(Scope *scope) {
 
 static void wrong_panic_prototype(CodeGen *g, AstNode *proto_node, TypeTableEntry *fn_type) {
     add_node_error(g, proto_node,
-            buf_sprintf("expected 'fn([]const u8, ?&builtin.StackTrace) unreachable', found '%s'",
+            buf_sprintf("expected 'fn([]const u8, ?*builtin.StackTrace) noreturn', found '%s'",
                 buf_ptr(&fn_type->name)));
 }