additional info in an internal error

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-30 20:40:48 +01:00
parent b3a9c4e8d9
commit 1a264e5576

2
ast.c
View file

@ -997,7 +997,7 @@ ast_function* ast_function_new(lex_ctx ctx, const char *name, ast_value *vtype)
vtype->hasvalue ||
vtype->expression.vtype != TYPE_FUNCTION)
{
compile_error(ast_ctx(self), "internal error: ast_function_new condition %i %i type=%i",
compile_error(ast_ctx(self), "internal error: ast_function_new condition %i %i type=%i (probably 2 bodies?)",
(int)!vtype,
(int)vtype->hasvalue,
vtype->expression.vtype);