[WIP] add check for polymorphic functions

This commit is contained in:
2017-05-02 14:59:04 -04:00
parent 0887760de1
commit b3b02df569
5 changed files with 30 additions and 1 deletions

View File

@@ -627,3 +627,14 @@ Function::GenerateIR() {
}
}
}
const bool
Function::IsPolyFunction() const {
for (size_t i = 0; i < args.size(); i++) {
if (args[i]->type->IsPolymorphicType()) {
return true;
}
}
return false;
}