source: tests/collections/.expect/string-operator-ERR01.txt@ 570e7ad

Last change on this file since 570e7ad was 570e7ad, checked in by Michael Brooks <mlbrooks@…>, 7 months ago

Make string operator-overload costs match their intuitively equivalent arithmetics.

Replace many by-reference string args with by-value args to work around noise from the reference-cost column.

Use a special arithmetic type for the factor argument of ?*? to match conversion cost of (char*int=int).

Removes cost-function noise of char-arithmetic operators being preferred over their string-concatenation equivalents in the reference-cost column.

Notably, all former Spanish-A and numeric outputs have become ambiguous or been associated with a reproducible bug.

  • Property mode set to 100644
File size: 3.6 KB
Line 
1collections/string-operator.cfa:139:1 error: Cannot choose between 2 alternatives for expression
2Applying untyped:
3 Name: ?{}
4...to:
5 Generated Cast of:
6 Variable Expression: s: instance of struct string with body
7 ... with resolved type:
8 instance of struct string with body
9 ... to:
10 reference to instance of struct string with body
11 ... with resolved type:
12 reference to instance of struct string with body
13 Applying untyped:
14 Name: ?+?
15 ...to:
16 Constant Expression ('a': char)
17 ... with resolved type:
18 char
19 Constant Expression ('b': char)
20 ... with resolved type:
21 char
22
23 Alternatives are:
24Cost ( 0, 0, 0, 0, 0, 0, 0, 1 ): Application of
25 Variable Expression: ?{}: function
26 ... with parameters
27 reference to instance of struct string with body
28 char
29 ... returning nothing
30
31 ... with resolved type:
32 pointer to function
33 ... with parameters
34 reference to instance of struct string with body
35 char
36 ... returning nothing
37
38 ... to arguments
39 Generated Cast of:
40 Variable Expression: s: instance of struct string with body
41 ... with resolved type:
42 instance of struct string with body
43 ... to:
44 reference to instance of struct string with body
45 ... with resolved type:
46 reference to instance of struct string with body
47 Application of
48 Variable Expression: ?+?: function
49 ... with parameters
50 char
51 char
52 ... returning
53 char
54
55 ... with resolved type:
56 pointer to function
57 ... with parameters
58 char
59 char
60 ... returning
61 char
62
63 ... to arguments
64 Constant Expression ('a': char)
65 ... with resolved type:
66 char
67 Constant Expression ('b': char)
68 ... with resolved type:
69 char
70
71 ... with resolved type:
72 char
73
74 ... with resolved type:
75 void
76 (types:
77 void
78 )
79 Environment:
80
81Cost ( 0, 0, 0, 0, 0, 0, 0, 1 ): Application of
82 Variable Expression: ?{}: function
83 ... with parameters
84 reference to instance of struct string with body
85 instance of struct string with body
86 ... returning nothing
87
88 ... with resolved type:
89 pointer to function
90 ... with parameters
91 reference to instance of struct string with body
92 instance of struct string with body
93 ... returning nothing
94
95 ... to arguments
96 Generated Cast of:
97 Variable Expression: s: instance of struct string with body
98 ... with resolved type:
99 instance of struct string with body
100 ... to:
101 reference to instance of struct string with body
102 ... with resolved type:
103 reference to instance of struct string with body
104 Application of
105 Variable Expression: ?+?: function
106 ... with parameters
107 char
108 char
109 ... returning
110 instance of struct string with body
111
112 ... with resolved type:
113 pointer to function
114 ... with parameters
115 char
116 char
117 ... returning
118 instance of struct string with body
119
120 ... to arguments
121 Constant Expression ('a': char)
122 ... with resolved type:
123 char
124 Constant Expression ('b': char)
125 ... with resolved type:
126 char
127
128 ... with resolved type:
129 instance of struct string with body
130
131 ... with resolved type:
132 void
133 (types:
134 void
135 )
136 Environment:
137
138
139collections/string-operator.cfa:139:1 error: No alternatives for expression Name: s
Note: See TracBrowser for help on using the repository browser.