chore: fix test

`set_option` command after `by` tactic block is ambiguous.
We need to indent or use `{ ... }`.

cc @Kha
This commit is contained in:
Leonardo de Moura 2021-03-06 16:46:18 -08:00
parent 061b9bf60f
commit 6ec5c1de54
2 changed files with 4 additions and 4 deletions

View file

@ -20,9 +20,9 @@ apply h1;
assumption
example {p q : Prop} (h₁ : p → q) (h₂ : p q) : q := by
cases h₂;
{ apply h₁; exact h }; -- error "unknown identifier"
exact h
cases h₂;
{ apply h₁; exact h }; -- error "unknown identifier"
exact h
set_option hygienicIntro false in
example {p q : Prop} (h₁ : p → q) (h₂ : p q) : q := by

View file

@ -1,2 +1,2 @@
hygienicIntro.lean:14:6-14:9: error: unknown identifier 'a_1'
hygienicIntro.lean:24:18-24:19: error: unknown identifier 'h'
hygienicIntro.lean:24:20-24:21: error: unknown identifier 'h'