From 1f614012969b0d9052ee1bb0526afddc7e6187b6 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 5 Jun 2016 00:30:12 +0800 Subject: Resolve - Replace `Self` when known --- src/ast/types.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/ast/types.cpp') diff --git a/src/ast/types.cpp b/src/ast/types.cpp index 7b1c4cdb..070f02ba 100644 --- a/src/ast/types.cpp +++ b/src/ast/types.cpp @@ -168,16 +168,6 @@ Ordering TypeRef::ord(const TypeRef& x) const return OrdEqual; ), (Generic, - if( ent.params != x_ent.params ) - { - DEBUG(*this << " == " << x); - if( ent.params ) DEBUG("- (L) " << *ent.params); - if( x_ent.params ) DEBUG("- (R) " << *x_ent.params); - throw ::std::runtime_error("Can't compare mismatched generic types"); - //BUG(m_span, "Can't compare mismatched generic types"); - } - else { - } return ::ord(ent.name, x_ent.name); ), (Path, @@ -245,7 +235,7 @@ Ordering TypeRef::ord(const TypeRef& x) const os << "]"; ) _(Generic, - os << "/* arg */ " << ent.name << "/*"<