open data Single (A : Type) | single {A}
def justMatch {A : Type} (s : Single A) : Single A
| single => s
Aya said
```
In file main.aya:3:4 ->
1 | open data Single (A : Type) | single {A}
2 | def justMatch {A : Type} (s : Single A) : Single A
3 | | single => s
^----^
Error: Cannot check the expression
_5
of type
A
against the type
Type 0
at (96-101) [3,4-3,9]
```
The clause | single => s is expanded to | {A}, single {_5} => single {_5} which is incorrect.
Minimum code:
Aya said
``` In file main.aya:3:4 -> 1 | open data Single (A : Type) | single {A} 2 | def justMatch {A : Type} (s : Single A) : Single A 3 | | single => s ^----^ Error: Cannot check the expression _5 of type A against the type Type 0 at (96-101) [3,4-3,9] ```The clause
| single => s
is expanded to| {A}, single {_5} => single {_5}
which is incorrect.