diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-22 14:51:07 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-22 14:51:07 +0800 |
commit | 76d70d4cbfbdf09082d35a224a4c7f2d2b501974 (patch) | |
tree | a0b3ce0ea0f624e56e57edc6850542e9f4081eae /src/ast/ast.cpp | |
parent | 8d1acfa3993e64b0266365379602799350855f3f (diff) | |
download | mrust-76d70d4cbfbdf09082d35a224a4c7f2d2b501974.tar.gz |
Added bounds to _ types, propagating type params further (and replacing when needed)
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 7fb84100..a5af04f5 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -105,6 +105,11 @@ const Module& Crate::get_root_module(const ::std::string& name) const { throw ParseError::Generic("crate name unknown");
}
+Impl& Crate::find_impl(const TypeRef& trait, const TypeRef& type)
+{
+ throw ParseError::Generic( FMT("TODO: Lookup impl of " << trait << " for type " << type));
+}
+
Function& Crate::lookup_method(const TypeRef& type, const char *name)
{
throw ParseError::Generic( FMT("TODO: Lookup method "<<name<<" for type " <<type));
|