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.

@nicolasstucki nicolasstucki force-pushed the remove-tpt-from-hole branch from 87e8a4d to 10bbcd0 Compare May 10, 2023 13:51
@@ -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 force-pushed the remove-tpt-from-hole branch from 10bbcd0 to 082499b Compare May 11, 2023 07:28
@nicolasstucki nicolasstucki marked this pull request as ready for review May 11, 2023 11:25
@nicolasstucki nicolasstucki requested a review from smarter 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.

@smarter smarter assigned nicolasstucki and unassigned smarter May 11, 2023
@nicolasstucki nicolasstucki force-pushed the remove-tpt-from-hole branch from 082499b to 711fa7b Compare May 11, 2023 13:05
@nicolasstucki nicolasstucki enabled auto-merge May 11, 2023 13:06
@nicolasstucki nicolasstucki disabled auto-merge May 11, 2023 13:07
@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 force-pushed the remove-tpt-from-hole branch from 711fa7b to 2e71268 Compare May 11, 2023 18:06
@nicolasstucki nicolasstucki enabled auto-merge May 11, 2023 18:06
@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