source: tests/collections/.expect/string-operator-ERR15.txt@ b28ce93

Last change on this file since b28ce93 was d175767, checked in by Michael Brooks <mlbrooks@…>, 9 months ago

Add test for string operator overload selection.

The ".expect" file merely captures present state.

This tests makes visible the effects of upcoming string-overload reorganizations.

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