changeset 807 | 4d71292f8732 |
parent 806 | f218434eeaf8 |
child 808 | 7a6b53d61ea3 |
--- a/stage3/narrow_candidate_datatypes.cc Wed Jan 23 13:46:11 2013 +0000 +++ b/stage3/narrow_candidate_datatypes.cc Wed Jan 23 14:30:03 2013 +0000 @@ -748,6 +748,10 @@ symbol->fblock_body->accept(*this); delete search_varfb_instance_type; search_varfb_instance_type = NULL; + + // A FB declaration can also be used as a Datatype! We now do the narrow algorithm considering it as such! + if (symbol->candidate_datatypes.size() == 1) + symbol->datatype = symbol->candidate_datatypes[0]; return NULL; }