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
Prerequisites
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
Expected behavior: Either both variants of baz fail to compile or the first one doesn't warn.
Actual behavior: Misleading warning on first
bazVersions
d3b0487