From 3332a8379b7f20173ba5d63fe5ee40e47d57902a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 18 Mar 2017 19:01:27 +0800 Subject: HIR Typecheck - Fix incorrect error message --- src/hir_typeck/expr_cs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp index 3d4826ff..4a8f381a 100644 --- a/src/hir_typeck/expr_cs.cpp +++ b/src/hir_typeck/expr_cs.cpp @@ -2991,11 +2991,11 @@ namespace { void visit(::HIR::ExprNode_Literal& node) override { TU_MATCH(::HIR::ExprNode_Literal::Data, (node.m_data), (e), (Integer, - ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Float Literal didn't return primitive"); + ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Integer _Literal didn't return primitive - " << node.m_res_type); e.m_type = node.m_res_type.m_data.as_Primitive(); ), (Float, - ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Float Literal didn't return primitive"); + ASSERT_BUG(node.span(), node.m_res_type.m_data.is_Primitive(), "Float Literal didn't return primitive - " << node.m_res_type); e.m_type = node.m_res_type.m_data.as_Primitive(); ), (Boolean, -- cgit v1.2.3