diff options
author | John Hodge <tpg@ucc.asn.au> | 2016-06-09 21:46:45 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2016-06-09 21:46:45 +0800 |
commit | dee263533dbc77a65baa796c6414819da36bc3ce (patch) | |
tree | 3d22820da91c41d6587b798e0cbcdf50aa516cf4 /src/resolve | |
parent | 01d97106b9977f5f0226b4c446616f195fbeaaf4 (diff) | |
download | mrust-dee263533dbc77a65baa796c6414819da36bc3ce.tar.gz |
HIR Typecheck - Associated type bounds used and "working"
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/absolute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index f224d5f9..393120b9 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -20,7 +20,7 @@ struct GenericSlot unsigned short index; unsigned int to_binding() const { - if(level == Level::Method) { + if(level == Level::Method && index != 0xFFFF) { return (unsigned int)index + 256; } else { |