From eea8d7e37ffdb8886e4dc3ab1c1c715df3935ca8 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 11 Jun 2016 15:00:51 +0800 Subject: HIR Typecheck - Fixes for `trait Int: Add` --- src/resolve/absolute.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/resolve') diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 84a6b191..2a5b5561 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -154,9 +154,7 @@ struct Context return e->clone(); } else { - auto rv = ::TypeRef("Self"); - rv.m_data.as_Generic().index = 0xFFFF; - return rv; + return ::TypeRef("Self", 0xFFFF); } ) ) -- cgit v1.2.3