Skip to content

summonFrom and summon use different scopes for implicit search #11538

Closed
@heksesang

Description

@heksesang

Compiler version

3.0.0-RC1

Minimized code

https://scastie.scala-lang.org/KfWryGwAT3SW7xwpv6k6OA

Output

Compiler error due to the fact that summonFrom only seems to do the implicit search within the closest enclosing scope (it compiles if the given is imported in the same scope as the summonFrom call).

Expectation

The calls to summon and summonFrom should obey the same rules for implicit search.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions