Skip to content

Commit

Permalink
Updates release notes for PR #4027
Browse files Browse the repository at this point in the history
  • Loading branch information
ponylang-main committed Feb 22, 2022
1 parent 8869dd7 commit bdea439
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .release-notes/4027.md

This file was deleted.

8 changes: 8 additions & 0 deletions .release-notes/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,11 @@ The `map_stateful` and `map` methods on an Iter (from the itertools package) wer

This change correctly makes them only require `B`.

## Use symbol table from definition scope when looking up references from default method bodies

Previously, symbols from default method bodies were only looked up in the local scope of the file into which they were included. This resulted in compilation errors if said symbol wasn't available in the local scope.

Issues [#3737](https://github.com/ponylang/ponyc/issues/3737) and [#2150](https://github.com/ponylang/ponyc/issues/2150) were both examples of this problem.

We've updated definition lookup to check if the enclosing method is provided by a trait or interface and if it is, to also check to definition scope for any needed symbols.

0 comments on commit bdea439

Please sign in to comment.