Commit ff5bbb8c authored by Matthew Fernandez's avatar Matthew Fernandez
Browse files

allow a return type to reference a type that is shadowed by a function parameter

This change permits something like the following to now work:

  type t: 0 .. 1;

  function foo(t: boolean): t; begin
  ...

Previously, the parameter to the function would shadow the named type,
preventing the returned type from being resolved. This was unnecessary, as
there's no way for a return type to depend on a function parameter, so it
doesn't make sense to have the parameter in scope when resolving the return
type.
parent f2c2b294
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