Skip to content

any2stringadd inferred for anonymous given in for comprehension #10178

@bishabosha

Description

@bishabosha

Minimized code

def foo = for {                                                                                         
  x <- Option(23)
  given Int = x
} ()

Output

3 |  given Int = x
  |  ^
  |this case is unreachable since type any2stringadd$ and class Integer are unrelated

Expectation

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions