@@ -22,24 +22,26 @@ The argument's declared type is T in file rule_typecompat.dl at line 6
22
22
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 18
23
23
A(x) :- F(x,x).
24
24
--^-------------
25
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 18
25
+ Following constraints are incompatible:
26
+ Type of variable 'x' should be a subtype of 'R' in file rule_typecompat.dl at line 18
26
27
A(x) :- F(x,x).
27
- ----------^ -----
28
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 18
28
+ --------^-- -----
29
+ Type of variable 'x' should be a subtype of 'T' in file rule_typecompat.dl at line 18
29
30
A(x) :- F(x,x).
30
- ------------^ ---
31
+ --------^ -------
31
32
Warning: Variable y only occurs once in file rule_typecompat.dl at line 20
32
33
A(x) :- F(y,x).
33
34
----------^-----
34
35
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 23
35
36
A(x) :- G(x,x).
36
37
--^-------------
37
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 23
38
+ Following constraints are incompatible:
39
+ Type of variable 'x' should be a subtype of 'R' in file rule_typecompat.dl at line 23
38
40
A(x) :- G(x,x).
39
- ----------^ -----
40
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 23
41
+ --------^-- -----
42
+ Type of variable 'x' should be a subtype of 'T' in file rule_typecompat.dl at line 23
41
43
A(x) :- G(x,x).
42
- ------------^ ---
44
+ --------^ -------
43
45
Warning: Variable y only occurs once in file rule_typecompat.dl at line 25
44
46
A(x) :- G(x,y).
45
47
------------^---
@@ -58,12 +60,13 @@ G(x,y) :- A(x).
58
60
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 33
59
61
A(x) :- B(x), C(x).
60
62
--^-----------------
61
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 33
63
+ Following constraints are incompatible:
64
+ Type of variable 'x' should be a subtype of 'Q' in file rule_typecompat.dl at line 33
62
65
A(x) :- B(x), C(x).
63
- ----------^ ---------
64
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 33
66
+ --------------^ -----
67
+ Type of variable 'x' should be a subtype of 'S' in file rule_typecompat.dl at line 33
65
68
A(x) :- B(x), C(x).
66
- ----------------^ ---
69
+ --------^ -----------
67
70
Warning: Variable y only occurs once in file rule_typecompat.dl at line 36
68
71
A(x) :- A(x), B(y), C(z).
69
72
----------------^---------
@@ -85,39 +88,49 @@ F(x,y) :- F(x,z), G(z,x).
85
88
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 47
86
89
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
87
90
--------------^-----------------------
88
- Warning: Variable w only occurs once in file rule_typecompat.dl at line 47
91
+ Following constraints are incompatible:
92
+ Type of variable 'v' should be a subtype of 'R' in file rule_typecompat.dl at line 47
89
93
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
90
- --------------------^ -----------------
91
- Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 47
94
+ --------------------------------^ -----
95
+ Type of variable 'v' should be a subtype of 'T' in file rule_typecompat.dl at line 47
92
96
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
93
- ----------------------------^ ---------
94
- Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 47
97
+ ----------^ ---------------------------
98
+ Warning: Variable w only occurs once in file rule_typecompat.dl at line 47
95
99
F(x,y) :- F(x,v), F(w,y), A(v), D(v).
96
- ----------------------------------^ ---
100
+ --------------------^ -----------------
97
101
Warning: Variable v only occurs once in file rule_typecompat.dl at line 48
98
102
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
99
103
--------------^-----------------------
100
104
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 48
101
105
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
102
106
--------------------^-----------------
103
- Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 48
107
+ Following constraints are incompatible:
108
+ Type of variable 'w' should be a subtype of 'R' in file rule_typecompat.dl at line 48
104
109
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
105
- ----------------------------^ ---------
106
- Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 48
110
+ ------------------^ -------------------
111
+ Type of variable 'w' should be a subtype of 'T' in file rule_typecompat.dl at line 48
107
112
F(x,y) :- F(x,v), F(w,y), A(w), D(w).
108
- ----------------------------------^ ---
113
+ --------------------------^ -----------
109
114
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 49
110
115
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
111
116
--------------^-----------------------
117
+ Following constraints are incompatible:
118
+ Type of variable 'v' should be a subtype of 'R' in file rule_typecompat.dl at line 49
119
+ F(x,y) :- F(x,v), F(w,y), A(w), D(v).
120
+ --------------------------------^-----
121
+ Type of variable 'v' should be a subtype of 'T' in file rule_typecompat.dl at line 49
122
+ F(x,y) :- F(x,v), F(w,y), A(w), D(v).
123
+ ----------^---------------------------
112
124
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 49
113
125
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
114
126
--------------------^-----------------
115
- Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 49
127
+ Following constraints are incompatible:
128
+ Type of variable 'w' should be a subtype of 'R' in file rule_typecompat.dl at line 49
116
129
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
117
- ----------------------------^ ---------
118
- Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 49
130
+ ------------------^ -------------------
131
+ Type of variable 'w' should be a subtype of 'T' in file rule_typecompat.dl at line 49
119
132
F(x,y) :- F(x,v), F(w,y), A(w), D(v).
120
- ----------------------------------^ ---
133
+ --------------------------^ -----------
121
134
Warning: Variable w only occurs once in file rule_typecompat.dl at line 52
122
135
F(x,y) :- F(x,v), F(w,y), !H(v), !D(v).
123
136
--------------------^-------------------
@@ -127,33 +140,23 @@ F(x,y) :- F(x,v), F(w,y), !H(w), !D(w).
127
140
Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 57
128
141
F(x,y) :- F(x,y), x > y.
129
142
--^----------------------
143
+ Following constraints are incompatible:
144
+ var(y) <: var(x)
130
145
Error: Unable to deduce type for variable y in file rule_typecompat.dl at line 57
131
146
F(x,y) :- F(x,y), x > y.
132
147
----^--------------------
133
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 57
134
- F(x,y) :- F(x,y), x > y.
135
- ------------^------------
136
- Error: Unable to deduce type for variable y in file rule_typecompat.dl at line 57
137
- F(x,y) :- F(x,y), x > y.
138
- --------------^----------
139
- Error: Unable to deduce type for variable x in file rule_typecompat.dl at line 57
140
- F(x,y) :- F(x,y), x > y.
141
- ------------------^------
142
- Error: Unable to deduce type for variable y in file rule_typecompat.dl at line 57
143
- F(x,y) :- F(x,y), x > y.
144
- ----------------------^--
148
+ Following constraints are incompatible:
149
+ var(x) <: var(y)
145
150
Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 59
146
151
F(x,y) :- F(x,v), F(w,y), w != v.
147
152
--------------^-------------------
153
+ Following constraints are incompatible:
154
+ var(w) <: var(v)
148
155
Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 59
149
156
F(x,y) :- F(x,v), F(w,y), w != v.
150
157
--------------------^-------------
151
- Error: Unable to deduce type for variable w in file rule_typecompat.dl at line 59
152
- F(x,y) :- F(x,v), F(w,y), w != v.
153
- --------------------------^-------
154
- Error: Unable to deduce type for variable v in file rule_typecompat.dl at line 59
155
- F(x,y) :- F(x,v), F(w,y), w != v.
156
- -------------------------------^--
158
+ Following constraints are incompatible:
159
+ var(v) <: var(w)
157
160
Error: Ungrounded variable t in file rule_typecompat.dl at line 62
158
161
F(x,y) :- F(x,y), x > t.
159
162
----------------------^--
@@ -166,4 +169,4 @@ F(x,y) :- F(x,y), t < x.
166
169
Warning: Variable t only occurs once in file rule_typecompat.dl at line 63
167
170
F(x,y) :- F(x,y), t < x.
168
171
------------------^------
169
- 36 errors generated, evaluation aborted
172
+ 18 errors generated, evaluation aborted
0 commit comments