Skip to content

Fix #5897 and #6200: implicits are not retained in REPL #6237

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
Apr 5, 2019

Conversation

anatoliykmetyuk
Copy link
Contributor

When evaluating definitions in REPL (def, implied etc), they are brought in scope for all the subsequent evaluations of the user input. This is done via the import mechanism. However, in Dotty,
the semantics of the imports changed: by default, the implied values are not imported. This commit makes sure that all the members, including the implied ones, are imported from the previous evaluations of the input.

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

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

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

When evaluating definitions in REPL (`def`, `implied` etc),
they are brought in scope for all the subsequent evaluations of the
user input. This is done via the `import` mechanism. However, in Dotty,
the semantics of the imports changed: by default, the implied values are
not imported. This commit makes sure that all the members, including the
implied ones, are imported from the previous evaluations of the input.
@odersky odersky self-assigned this Apr 5, 2019
@odersky odersky merged commit 7143421 into scala:master Apr 5, 2019
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.

3 participants