Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 9, 2019

  1. Treat val _ = ... as a PatDef, which enables multiple such definitions without double definition errors.
  2. Specialize types of inline values even if a wider type was given in an inherited definition. This generalizes a previous scheme for final vals.
  3. Fix Scala2 unpickler's handling of package references

odersky added 3 commits July 8, 2019 21:27
These need to be expanded to pattern definitions, not ValDefs,
otherwise duplicate definition errors result.
Specialize types of ibline values even if a wider type was gven in an inherited definition.
This generalizes a previous scheme for final vals.
@odersky odersky changed the title Two tweaks Three tweaks Jul 10, 2019
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liufengyun liufengyun merged commit ca5916e into scala:master Jul 11, 2019
@liufengyun liufengyun deleted the specialize-inline-vals branch July 11, 2019 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants