From 5c0e31a6adcb76887e3877de537cfd1c6cf2ffa0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 21 Mar 2015 15:50:12 +0800 Subject: Misc (warning suppression, planning trait methods in resolve) --- src/ast/path.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ast/path.cpp') diff --git a/src/ast/path.cpp b/src/ast/path.cpp index 338a0b15..25015ab7 100644 --- a/src/ast/path.cpp +++ b/src/ast/path.cpp @@ -157,6 +157,8 @@ void Path::resolve(const Crate& root_crate) goto ret; } else if( is_sec_last ) { + m_binding_type = TRAIT_METHOD; + m_binding.trait_ = &it->data; throw ParseError::Todo("Path::resolve() trait method"); } else { -- cgit v1.2.3