Skip to content

Try fix #1743: typing of ValDef with anonymous class #1744

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

Closed
wants to merge 2 commits into from

Conversation

liufengyun
Copy link
Contributor

@liufengyun liufengyun commented Nov 25, 2016

In typing of blocks, it's fine to reference local type symbols. Fix #1743.

@liufengyun liufengyun changed the title Try fix i1743: typing of ValDef with anonymous class Try fix #1743: typing of ValDef with anonymous class Nov 25, 2016
@odersky
Copy link
Contributor

odersky commented Nov 25, 2016

Not sure we can do it that way. Avoidance is a tricky issue...

@odersky
Copy link
Contributor

odersky commented Nov 25, 2016

In principle, we should not let a locally defined type escape in the type of a block.

@liufengyun
Copy link
Contributor Author

Thanks @odersky , so I guess in this case the only right solution is to resort to structural types, which we have to decide whether to support or not.

I close it for now.

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