summaryrefslogtreecommitdiff
path: root/testdata/language-features/adt/adt02.reject.out
blob: 97a3c5f17a271773ae5bfb0668c8f755210d6610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
type error: can not unify
'Bool
with
'Int

in 

------------ trace
'Data3 :: Type
Data3 :: 'Bool -> 'Char -> 'Bool->'Data3
Data31 :: 'Int -> 'String -> 'Int->'Data3
'Data3Case :: (b : 'Data3->Type) -> (c:'Bool -> d:'Char -> e:'Bool -> b (Data3 c d e)) -> (g:'Int -> h:'String -> i:'Int -> b (Data31 g h i)) -> k:'Data3 -> b k
match'Data3 :: (b : Type->Type) -> b 'Data3 -> d:Type -> b d -> b d
infer:  \(a : _:'Type) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (e : _:'Type) -> labelend e) (\_:'Type _:'Type (h : _:'Type) -> labelend h) a
infer:  \(a : _:'Type : Type) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (e : _:'Type) -> labelend e) (\_:'Type _:'Type (h : _:'Type) -> labelend h) a
infer:  \(b : (\a:'Type -> a) : Type) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
focus:  \(b : (\a:Type -> a) : Type) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
infer:  \(b : \a->a : Type) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
focus:  \(b : \a->a : Type) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
focus:  \(b : (\a -> a:Type)) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
focus:  \(c : (\a b:'Unit -> a)) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (g : _:'Type) -> labelend g) (\_:'Type _:'Type (j : _:'Type) -> labelend j) c
focus:  \(b : \a->a) -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
focus:  \a b:a -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
infer:  \a b:a -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
infer:  \a b:a -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
infer:  \a b:a -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
infer:  \a b:a -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
infer:  \a b:a -> 'Data3Case (\_:'Type -> _:'Type) (\_:'Type _:'Type (f : _:'Type) -> labelend f) (\_:'Type _:'Type (i : _:'Type) -> labelend i) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\_:'Type -> _:'Type) (\_:'Type _:'Type (j : _:'Type) -> labelend j) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
check:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) ((\_:'Type -> _:'Type) :: 'Data3->Type) (\_:'Type _:'Type (i : _:'Type) -> labelend i) (\_:'Type _:'Type (l : _:'Type) -> labelend l) b
check:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> _:'Type :: Type) (\_:'Type _:'Type (j : _:'Type) -> labelend j) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
infer:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> _:'Type : Type) (\_:'Type _:'Type (j : _:'Type) -> labelend j) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
infer:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> (\h:'Type -> h) : Type) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> (\h:Type -> h) : Type) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
infer:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> \h->h : Type) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> \h->h : Type) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 h -> h:Type) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 h i:'Unit -> h) (\_:'Type _:'Type (l : _:'Type) -> labelend l) (\_:'Type _:'Type (o : _:'Type) -> labelend o) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g:'Data3 -> \h->h) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g h:'Data3 -> g) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c:Type d:Type e:Type f:Type -> 'Data3Case c d e f) (\g h:Type -> g) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type g:Type -> 'Data3Case d e f g) (\h:Type -> c)) (\_:'Type _:'Type (k : _:'Type) -> labelend k) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\_:'Type _:'Type (j : _:'Type) -> labelend j) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\_:'Type _:'Type (j : _:'Type) -> labelend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
check:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) ((\_:'Type _:'Type (j : _:'Type) -> labelend j) :: 'Bool -> 'Char -> 'Bool->c)) (\_:'Type _:'Type (j : _:'Type) -> labelend j) b
check:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool -> (\_:'Type (j : _:'Type) -> labelend j) :: 'Char -> 'Bool->c)) (\_:'Type _:'Type (k : _:'Type) -> labelend k) b
check:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char -> (\(j : _:'Type) -> labelend j) :: 'Bool->c)) (\_:'Type _:'Type (l : _:'Type) -> labelend l) b
check:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool -> labelend j :: c)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
check:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool -> labEnd j::c)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
infer:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool -> labEnd j:c)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool -> labEnd j:c)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool -> labEnd \(k : c~'Bool)->j)) (\_:'Type _:'Type (n : _:'Type) -> labelend n) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool -> labEnd (\c:='Bool -> j))) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool c:='Bool -> labEnd j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char j:'Bool c:='Bool -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char c:='Bool j:'Bool -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool i:'Char c:='Bool j:Type -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool c:='Bool i:'Char j:Type -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\h:'Bool c:='Bool i:Type j:Type -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\c:='Bool h:'Bool i:Type j:Type -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> c) d e f) (\c:='Bool h:Type i:Type j:Type -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c c:='Bool -> (\d:Type e:Type f:Type -> 'Data3Case (\g:Type -> 'Bool) d e f) (\h:Type i:Type j:Type -> labend j)) (\_:'Type _:'Type (m : _:'Type) -> labelend m) b
focus:  \a b:a -> (\c c:='Bool d:Type e:Type -> 'Data3Case (\f:Type -> 'Bool) (\g:Type h:Type i:Type -> labend i) d e) (\_:'Type _:'Type (l : _:'Type) -> labelend l) b
focus:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\_:'Type _:'Type (k : _:'Type) -> labelend k) b
check:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) ((\_:'Type _:'Type (k : _:'Type) -> labelend k) :: 'Int -> 'String -> 'Int->'Bool) b
check:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int -> (\_:'Type (k : _:'Type) -> labelend k) :: 'String -> 'Int->'Bool) b
check:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int j:'String -> (\(k : _:'Type) -> labelend k) :: 'Int->'Bool) b
check:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int j:'String k:'Int -> labelend k :: 'Bool) b
check:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int j:'String k:'Int -> labEnd k::'Bool) b
infer:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int j:'String k:'Int -> labEnd k:'Bool) b
focus:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int j:'String k:'Int -> labEnd k:'Bool) b
focus:  \a b:a -> (\c:Type d:Type -> 'Data3Case (\e:Type -> 'Bool) (\f:Type g:Type h:Type -> labend h) c d) (\i:'Int j:'String k:'Int -> labEnd \(l : 'Empty "can not unify\n\ESC[32m'Bool\ESC[m\nwith\n\ESC[32m'Int\ESC[m\n")->k) b
!type error: can not unify
'Bool
with
'Int

in 

------------ tooltips
testdata/language-features/adt/adt02.reject.lc 2:6-2:11  Type
testdata/language-features/adt/adt02.reject.lc 2:6-5:25  Type
testdata/language-features/adt/adt02.reject.lc 2:6-7:11  Type
testdata/language-features/adt/adt02.reject.lc 2:6-10:20  Type
testdata/language-features/adt/adt02.reject.lc 3:5-3:10  Bool -> Char -> Bool->Data3 | Data3 | Type
testdata/language-features/adt/adt02.reject.lc 3:21-3:25  Type
testdata/language-features/adt/adt02.reject.lc 4:21-4:25  Type
testdata/language-features/adt/adt02.reject.lc 5:21-5:25  Type
testdata/language-features/adt/adt02.reject.lc 7:5-7:11  Data3 | Int -> String -> Int->Data3 | Type
testdata/language-features/adt/adt02.reject.lc 8:17-8:20  Type
testdata/language-features/adt/adt02.reject.lc 9:17-9:23  Type
testdata/language-features/adt/adt02.reject.lc 10:17-10:20  Type