Skip to content

Fix #1773: handle patterns in interpolated string #1778

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 1 commit into from
Dec 8, 2016

Conversation

liufengyun
Copy link
Contributor

Fix #1773: handle patterns in interpolated string

Now following patterns can be correctly desugared and type checked:

val q"class ${name: String} extends ${parent: String}" = ...

Review @odersky

@@ -1081,6 +1085,8 @@ object desugar {
trees foreach collect
case Thicket(trees) =>
trees foreach collect
case Block(stats, expr) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Block(Nil, expr)? Otherwise, why disregard stats?

@odersky
Copy link
Contributor

odersky commented Dec 8, 2016

Otherwise LGTM

@liufengyun
Copy link
Contributor Author

Thanks @odersky , comment addressed and CI passed. Merge now.

@liufengyun liufengyun merged commit ac160ea into scala:master Dec 8, 2016
@liufengyun liufengyun deleted the fix-i1773 branch December 8, 2016 18:43
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