84e211b81b
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
24 lines
773 B
Text
24 lines
773 B
Text
Set: pp::colors
|
||
Set: pp::unicode
|
||
Imported 'Int'
|
||
let b := ⊤, a : ℤ := b in a
|
||
Assumed: vector
|
||
Assumed: const
|
||
let a := 10, v1 := const a ⊤, v2 := v1 in v2 : vector Bool 10
|
||
let a := 10, v1 : vector Bool a := const a ⊤, v2 : vector Bool a := v1 in v2
|
||
let a := 10, v1 : vector Bool a := const a ⊤, v2 : vector Bool a := v1 in v2 : vector Bool 10
|
||
let4.lean:32:26: error: type mismatch at definition 'v2', expected type
|
||
vector ℤ a
|
||
Given type:
|
||
vector Bool a
|
||
Assumed: foo
|
||
Coercion foo
|
||
let4.lean:41:26: error: type mismatch at definition 'v2', expected type
|
||
vector ℤ a
|
||
Given type:
|
||
vector Bool a
|
||
Set: lean::pp::coercion
|
||
let4.lean:49:26: error: type mismatch at definition 'v2', expected type
|
||
vector ℤ a
|
||
Given type:
|
||
vector Bool a
|