diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-10 22:34:42 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-10 22:34:42 +0800 |
commit | ab095ae14d46abe5bc33e7f7305ac27cc13e63ce (patch) | |
tree | 6af32fc7afde700a8666d696afa0f6bff62b7b11 /src/hir/hir.cpp | |
parent | c5f53bf6e0c85899ff6498c8150e621f4d0ef1c8 (diff) | |
download | mrust-ab095ae14d46abe5bc33e7f7305ac27cc13e63ce.tar.gz |
HIR Typecheck - Fixed resolution when a trait impl's argument hits an unresolved ivar
Diffstat (limited to 'src/hir/hir.cpp')
-rw-r--r-- | src/hir/hir.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/hir.cpp b/src/hir/hir.cpp index 9b00bcc0..742a2edf 100644 --- a/src/hir/hir.cpp +++ b/src/hir/hir.cpp @@ -41,7 +41,8 @@ namespace { if( right.m_data.is_Infer() ) { // TODO: Why is this false? A _ type could match anything - return false; + return left.m_data.is_Generic(); + //return true; } if( right.m_data.is_Generic() ) { return left.m_data.is_Generic(); |