summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ast/path.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index 56d06eaf..acd92dd8 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -227,12 +227,12 @@ void Path::bind_enum(const Enum& ent, const ::std::vector<TypeRef>& args)
DEBUG("Bound to enum");
m_binding_type = ENUM;
m_binding.enum_ = &ent;
- if( args.size() > 0 )
- {
- if( args.size() != ent.params().size() )
- throw ParseError::Generic("Parameter count mismatch");
- throw ParseError::Todo("Bind enum with params passed");
- }
+ //if( args.size() > 0 )
+ //{
+ // if( args.size() != ent.params().size() )
+ // throw ParseError::Generic("Parameter count mismatch");
+ // throw ParseError::Todo("Bind enum with params passed");
+ //}
}
void Path::bind_enum_var(const Enum& ent, const ::std::string& name, const ::std::vector<TypeRef>& args)
{
@@ -246,12 +246,12 @@ void Path::bind_enum_var(const Enum& ent, const ::std::string& name, const ::std
if( idx == ent.variants().size() )
throw ParseError::Generic("Enum variant not found");
- if( args.size() > 0 )
- {
- if( args.size() != ent.params().size() )
- throw ParseError::Generic("Parameter count mismatch");
- throw ParseError::Todo("Bind enum variant with params passed");
- }
+ //if( args.size() > 0 )
+ //{
+ // if( args.size() != ent.params().size() )
+ // throw ParseError::Generic("Parameter count mismatch");
+ // throw ParseError::Todo("Bind enum variant with params passed");
+ //}
DEBUG("Bound to enum variant '" << name << "' (#" << idx << ")");
m_binding_type = ENUM_VAR;