blob: aa7688483f6f8035930b0bbd0b219f27c37c978b [file] [edit]
set_option linter.unusedVariables true
class Foo
def bar [Foo] := 0
/--
warning: Variable name `x` is not explicitly referenced.
Hint: The binding can be removed (if unused) or named `_` (if used implicitly). Alternatively, prefix the name with `_` to silence this warning:
[apply] _x
Note: This linter can be disabled with `set_option linter.unusedVariables false`
-/
#guard_msgs in
def baz := let x := Foo.mk; bar -- unused variable `x`
/--
error: failed to synthesize instance of type class
Foo
Hint: Type class instance resolution failures can be inspected with the `set_option trace.Meta.synthInstance true` command.
-/
#guard_msgs in
def baz':= bar -- failed to synthesize instance of type class Foo