Skip to content

"unused variable" warning for variable used by typclass inference #13269

@andres-erbsen

Description

@andres-erbsen

Prerequisites

Description

class Foo
def bar [Foo] := 0
def baz := let x := Foo.mk; bar -- unused variable `x`
def baz':=                  bar -- failed to synthesize instance of type class Foo

Expected behavior: Either both variants of baz fail to compile or the first one doesn't warn.

Actual behavior: Misleading warning on first baz

Versions

d3b0487

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions