Skip to content

Various refactorings #12938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 5, 2021
Merged

Various refactorings #12938

merged 12 commits into from
Jul 5, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 25, 2021

Main changes:

  • Introduce a class InferredType for type trees that were inferred
  • Refactor overly long typeSig method in Namer
  • Improve expected types for dependent functions
  • Make dependency collection work for lazy vals
  • Fix printing of function type trees

odersky added 10 commits June 25, 2021 12:13
# Conflicts:
#	compiler/src/dotty/tools/dotc/typer/RefineTypes.scala
 - that way we avoid an overly long valOrDefDefSig

# Conflicts:
#	compiler/src/dotty/tools/dotc/typer/Namer.scala
# Conflicts:
#	compiler/src/dotty/tools/dotc/Compiler.scala
#	compiler/src/dotty/tools/dotc/typer/RefineTypes.scala
# Conflicts:
#	compiler/src/dotty/tools/dotc/typer/RefineTypes.scala
# Conflicts:
#	compiler/src/dotty/tools/dotc/typer/Typer.scala
# Conflicts:
#	compiler/src/dotty/tools/dotc/typer/RefineTypes.scala
Pull out calculations of expected types for returns
and of types of Super references
@odersky odersky marked this pull request as ready for review June 27, 2021 14:41
@odersky odersky mentioned this pull request Jun 28, 2021
@odersky odersky requested a review from bishabosha June 28, 2021 15:27
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

LGTM

@bishabosha bishabosha merged commit 9fc286b into scala:master Jul 5, 2021
@bishabosha bishabosha deleted the refactorings branch July 5, 2021 13:15
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