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