From 20ee7442f280ced9e5258876f9fd2212797f868b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 3 Nov 2015 12:25:42 +1100 Subject: Remove embedded spans (will move to wrapping spans) --- src/types.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index d25d3332..68347f55 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -576,7 +576,8 @@ Ordering TypeRef::ord(const TypeRef& x) const DEBUG(*this << " == " << x); if( ent.params ) DEBUG("- (L) " << *ent.params); if( x_ent.params ) DEBUG("- (R) " << *x_ent.params); - BUG(m_span, "Can't compare mismatched generic types"); + throw ::std::runtime_error("Can't compare mismatched generic types"); + //BUG(m_span, "Can't compare mismatched generic types"); } else { } -- cgit v1.2.3