diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-11 15:00:51 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-11 15:00:51 +0800 |
commit | eea8d7e37ffdb8886e4dc3ab1c1c715df3935ca8 (patch) | |
tree | f6bc07241845027de9482115dc588a93cc8d7da1 /src/resolve | |
parent | 5585040f36b6f8ffd6c0c44689525ce29ccb74d9 (diff) | |
download | mrust-eea8d7e37ffdb8886e4dc3ab1c1c715df3935ca8.tar.gz |
HIR Typecheck - Fixes for `trait Int: Add<Self>`
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/absolute.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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); } ) ) |