From 3663599d6d0748c3d79ac91dcc89982faaa820ed Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 20 Sep 2015 13:40:54 +0800 Subject: Do two passes of resolve to handle UFCS resolve problems --- src/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index ee6588a5..d25d3332 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -576,7 +576,7 @@ 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); - throw ::std::runtime_error("BUGCHECK - Can't compare mismatched generic types"); + BUG(m_span, "Can't compare mismatched generic types"); } else { } -- cgit v1.2.3