Skip to content

implied behaves abnormally in REPL #5897

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
Glavo opened this issue Feb 11, 2019 · 0 comments
Closed

implied behaves abnormally in REPL #5897

Glavo opened this issue Feb 11, 2019 · 0 comments
Assignees

Comments

@Glavo
Copy link
Contributor

Glavo commented Feb 11, 2019

scala> implied for Int = 10
def Int_instance: Int

scala> infer[Int]
1 |infer[Int]
  |          ^
  |no implicit argument of type Int was found for parameter x of method infer in object DottyPredef

This problem only occurs in REPL and can be passed normally using dotc compilation.

@Glavo Glavo changed the title erased implied behaves abnormally in REPL implied behaves abnormally in REPL Feb 13, 2019
anatoliykmetyuk added a commit to dotty-staging/dotty that referenced this issue Apr 4, 2019
anatoliykmetyuk added a commit to dotty-staging/dotty that referenced this issue Apr 4, 2019
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 theinput.
anatoliykmetyuk added a commit to dotty-staging/dotty that referenced this issue Apr 4, 2019
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 theinput.
anatoliykmetyuk added a commit to dotty-staging/dotty that referenced this issue Apr 4, 2019
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 theinput.
anatoliykmetyuk added a commit to dotty-staging/dotty that referenced this issue Apr 4, 2019
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 theinput.
anatoliykmetyuk added a commit to dotty-staging/dotty that referenced this issue Apr 4, 2019
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 closed this as completed in 8539117 Apr 5, 2019
odersky added a commit that referenced this issue Apr 5, 2019
Fix #5897 and #6200: implicits are not retained in REPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants