Skip to content
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

Remove tpt from Hole #17455

Merged
merged 1 commit into from
May 11, 2023
Merged

Conversation

nicolasstucki
Copy link
Contributor

Now the type is kept in the Hole node.

@@ -116,8 +116,7 @@ trait QuotesAndSplices {
}

def typedHole(tree: untpd.Hole, pt: Type)(using Context): Tree =
val tpt = typedType(tree.tpt)
assignType(tree, tpt)
assert(false, "Holes should only be typed by the ReTyper")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if there is a better pattern for this.

Copy link
Member

Choose a reason for hiding this comment

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

@nicolasstucki nicolasstucki marked this pull request as ready for review May 11, 2023 11:25
@@ -116,8 +116,7 @@ trait QuotesAndSplices {
}

def typedHole(tree: untpd.Hole, pt: Type)(using Context): Tree =
val tpt = typedType(tree.tpt)
assignType(tree, tpt)
assert(false, "Holes should only be typed by the ReTyper")
Copy link
Member

Choose a reason for hiding this comment

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

@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented May 11, 2023

Should merge #17424 first and check for conflicts

Now the type is kept in the `Hole` node.
@nicolasstucki nicolasstucki merged commit 2d185fc into scala:main May 11, 2023
@nicolasstucki nicolasstucki deleted the remove-tpt-from-hole branch May 11, 2023 19:25
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