Commit 2279e30e authored by Matthew Fernandez's avatar Matthew Fernandez
Browse files

fix: accept type-compatible return values though not type-equal

We were rejecting functions that returned values of range type when the type of
the returned expression was not directly a range. This could happen when the
type of the returned expression was a TypeExprID that then resolved to a range.
We now accept such constructions.

Github: closes #169 "returning type-compatible but differing range from a
  function is rejected"
parent bdb7cbb0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment