source: tests/errors/.expect/completeType.nast.x64.txt @ 36ec816

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 36ec816 was 2595df1, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Now using string print to sort alternatives

  • Property mode set to 100644
File size: 6.4 KB
RevLine 
[cb8a18c]1errors/completeType.cfa:34:1 error: Cannot choose between 2 alternatives for expression
[7889f14]2Generated Cast of:
3  Applying untyped:
4    Name: *?
5  ...to:
6    Name: x
7
[cd6a6ff]8... to: nothing
9... with resolved type:
10  void Alternatives are:
[7889f14]11Cost ( 0, 1, 2, 0, 1, -1, 0 ): Generated Cast of:
[dd857bb]12      Application of
13        Variable Expression: *?: forall
[07de76b]14          DT: data type
[dd857bb]15          function
16        ... with parameters
[914844e]17          pointer to instance of type DT (not function type)
[dd857bb]18        ... returning
[914844e]19          reference to instance of type DT (not function type)
[7889f14]20
[cd6a6ff]21        ... with resolved type:
22          pointer to forall
23            [unbound]:data type
24            function
25          ... with parameters
26            pointer to instance of type [unbound] (not function type)
27          ... returning
28            reference to instance of type [unbound] (not function type)
29
[914844e]30        ... to arguments
[2595df1]31        Variable Expression: x: pointer to instance of struct A without body
[cd6a6ff]32        ... with resolved type:
[2595df1]33          pointer to instance of struct A without body
[7889f14]34
[cd6a6ff]35      ... with resolved type:
[2595df1]36        reference to instance of struct A without body
[dd857bb]37    ... to: nothing
[cd6a6ff]38    ... with resolved type:
39      void
[dd857bb]40  (types:
[914844e]41    void
[dd857bb]42  )
[2595df1]43  Environment:([unbound]) -> instance of struct A without body (no widening)
[7889f14]44
45
46Cost ( 0, 1, 2, 0, 1, -1, 0 ): Generated Cast of:
[dd857bb]47      Application of
48        Variable Expression: *?: forall
[07de76b]49          DT: data type
[dd857bb]50          function
51        ... with parameters
[914844e]52          pointer to instance of type DT (not function type)
[dd857bb]53        ... returning
[914844e]54          reference to instance of type DT (not function type)
[7889f14]55
[cd6a6ff]56        ... with resolved type:
57          pointer to forall
58            [unbound]:data type
59            function
60          ... with parameters
61            pointer to instance of type [unbound] (not function type)
62          ... returning
63            reference to instance of type [unbound] (not function type)
64
[914844e]65        ... to arguments
[2595df1]66        Variable Expression: x: pointer to instance of struct B with body
[cd6a6ff]67        ... with resolved type:
[2595df1]68          pointer to instance of struct B with body
[7889f14]69
[cd6a6ff]70      ... with resolved type:
[2595df1]71        reference to instance of struct B with body
[dd857bb]72    ... to: nothing
[cd6a6ff]73    ... with resolved type:
74      void
[dd857bb]75  (types:
[914844e]76    void
[dd857bb]77  )
[2595df1]78  Environment:([unbound]) -> instance of struct B with body (no widening)
[7889f14]79
[0f35657]80
[4d5e57b]81
[914844e]82errors/completeType.cfa:35:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[4d5e57b]83  Name: foo
[07ec1a2]84...to:
[4d5e57b]85  Name: v
[0f35657]86
[914844e]87errors/completeType.cfa:36:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[2c57025]88  Name: baz
[07ec1a2]89...to:
[2c57025]90  Name: v
91
[914844e]92errors/completeType.cfa:37:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[2c57025]93  Name: quux
[07ec1a2]94...to:
[2c57025]95  Name: v
96
[914844e]97errors/completeType.cfa:59:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[7889f14]98  Name: baz
[07ec1a2]99...to:
[2c57025]100  Name: y
101
[914844e]102errors/completeType.cfa:60:1 error: Invalid application of existing declaration(s) in expression Applying untyped:
[7889f14]103  Name: quux
[07ec1a2]104...to:
[0f35657]105  Name: y
106
[cb8a18c]107errors/completeType.cfa:72:1 error: No alternatives with satisfiable assertions for Applying untyped:
[2c57025]108  Name: baz
[07ec1a2]109...to:
[2c57025]110  Name: z
111
[dd857bb]112      Unsatisfiable alternative:
[3e7c323]113Cost ( 0, 1, 0, 0, 1, -5, 0 ): Application of
[dd857bb]114            Variable Expression: baz: forall
[07de76b]115              T: sized data type
[dd857bb]116              ... with assertions
117                ?=?: pointer to function
118                ... with parameters
119                  reference to instance of type T (not function type)
120                  instance of type T (not function type)
121                ... returning
[914844e]122                  instance of type T (not function type)
[dd857bb]123
124                ?{}: pointer to function
125                ... with parameters
126                  reference to instance of type T (not function type)
127                ... returning nothing
128
129                ?{}: pointer to function
130                ... with parameters
131                  reference to instance of type T (not function type)
132                  instance of type T (not function type)
133                ... returning nothing
134
135                ^?{}: pointer to function
136                ... with parameters
137                  reference to instance of type T (not function type)
138                ... returning nothing
139
140
141              function
142            ... with parameters
143              pointer to instance of type T (not function type)
144            ... returning nothing
145
[cd6a6ff]146            ... with resolved type:
147              pointer to forall
148                [unbound]:sized data type
149                ... with assertions
150                  ?=?: pointer to function
151                  ... with parameters
152                    reference to instance of type [unbound] (not function type)
153                    instance of type [unbound] (not function type)
154                  ... returning
155                    instance of type [unbound] (not function type)
156
157                  ?{}: pointer to function
158                  ... with parameters
159                    reference to instance of type [unbound] (not function type)
160                  ... returning nothing
161
162                  ?{}: pointer to function
163                  ... with parameters
164                    reference to instance of type [unbound] (not function type)
165                    instance of type [unbound] (not function type)
166                  ... returning nothing
167
168                  ^?{}: pointer to function
169                  ... with parameters
170                    reference to instance of type [unbound] (not function type)
171                  ... returning nothing
172
173
174                function
175              ... with parameters
176                pointer to instance of type [unbound] (not function type)
177              ... returning nothing
178
[914844e]179            ... to arguments
[dd857bb]180            Variable Expression: z: pointer to instance of type T (not function type)
[cd6a6ff]181            ... with resolved type:
182              pointer to instance of type T (not function type)
[914844e]183          with 1 pending inference slots
[dd857bb]184
[cd6a6ff]185          ... with resolved type:
186            void
[dd857bb]187        (types:
[914844e]188          void
[dd857bb]189        )
[cd6a6ff]190        Environment:([unbound]) -> instance of type T (not function type) (no widening)
[dd857bb]191
192      Could not satisfy assertion:
[7889f14]193?=?: pointer to function
[dd857bb]194        ... with parameters
[cd6a6ff]195          reference to instance of type [unbound] (not function type)
196          instance of type [unbound] (not function type)
[dd857bb]197        ... returning
[cd6a6ff]198          instance of type [unbound] (not function type)
[c9aba81]199
Note: See TracBrowser for help on using the repository browser.