diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-06 15:13:46 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-06 15:13:46 +0800 |
commit | 15aabebe2ec4636d51656b786d56083703f2b393 (patch) | |
tree | f59561910d2cc4d5cac0e37be43dc94e89e3c175 /src/ast/types.hpp | |
parent | 62f8cff1c9113fe2ba90664a63e49a6edb13d371 (diff) | |
download | mrust-15aabebe2ec4636d51656b786d56083703f2b393.tar.gz |
HIR Typecheck - Method calls being planned, fixed resolution of Generic types
Diffstat (limited to 'src/ast/types.hpp')
-rw-r--r-- | src/ast/types.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ast/types.hpp b/src/ast/types.hpp index 4ffff312..8fbd6c37 100644 --- a/src/ast/types.hpp +++ b/src/ast/types.hpp @@ -192,11 +192,11 @@ public: {}
struct TagArg {};
- TypeRef(TagArg, ::std::string name):
- m_data(TypeData::make_Generic({ name, 0 }))
+ TypeRef(TagArg, ::std::string name, unsigned int binding = ~0u):
+ m_data(TypeData::make_Generic({ name, binding }))
{}
- TypeRef(::std::string name):
- TypeRef(TagArg(), ::std::move(name))
+ TypeRef(::std::string name, unsigned int binding = ~0u):
+ TypeRef(TagArg(), ::std::move(name), binding)
{}
struct TagPath {};
|