source: tests/.expect/castError.oast.txt @ de31a1d

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since de31a1d was 3233b91, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Fix left erros in old AST

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[1d17939]1castError.cfa:23:1 error: Cannot choose between 3 alternatives for expression
[b9afb1e]2Explicit Cast of:
[4efe4d1]3  Name: f
[50377a4]4... to:
[63ec5fa]5  char
6with resolved type:
[588c2b0]7  char Alternatives are:
[b9afb1e]8Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
[3233b91]9      Variable Expression: f: double
[63ec5fa]10      with resolved type:
[3233b91]11        double
[dd857bb]12    ... to:
13      char
[63ec5fa]14    with resolved type:
15      char
[dd857bb]16  (types:
17    char
18  )
19  Environment:
[50377a4]20
[b9afb1e]21Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
[3233b91]22      Variable Expression: f: function
23        accepting unspecified arguments
24      ... returning nothing
25
[63ec5fa]26      with resolved type:
[3233b91]27        pointer to function
28          accepting unspecified arguments
29        ... returning nothing
30
[dd857bb]31    ... to:
32      char
[63ec5fa]33    with resolved type:
34      char
[dd857bb]35  (types:
36    char
37  )
38  Environment:
[50377a4]39
[b9afb1e]40Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
[dd857bb]41      Variable Expression: f: signed int
[63ec5fa]42      with resolved type:
43        signed int
[dd857bb]44    ... to:
45      char
[63ec5fa]46    with resolved type:
47      char
[dd857bb]48  (types:
49    char
50  )
51  Environment:
[4efe4d1]52
53
[1d17939]54castError.cfa:28:1 error: Cannot choose between 2 alternatives for expression
[b9afb1e]55Generated Cast of:
56  Comma Expression:
57    constant expression (3 3: signed int)
[63ec5fa]58    with resolved type:
59      signed int
[b9afb1e]60    Name: v
[63ec5fa]61... to: nothing
62with resolved type:
63  void  Alternatives are:
[b9afb1e]64Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
[dd857bb]65      Comma Expression:
66        constant expression (3 3: signed int)
[63ec5fa]67        with resolved type:
68          signed int
[3233b91]69        Variable Expression: v: signed short int
[63ec5fa]70        with resolved type:
[3233b91]71          signed short int
[63ec5fa]72      with resolved type:
[3233b91]73        signed short int
[dd857bb]74    ... to: nothing
[63ec5fa]75    with resolved type:
76      void
[dd857bb]77  (types:
78    void
79  )
80  Environment:
[b9afb1e]81
82Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
[dd857bb]83      Comma Expression:
84        constant expression (3 3: signed int)
[63ec5fa]85        with resolved type:
86          signed int
[3233b91]87        Variable Expression: v: unsigned char
[63ec5fa]88        with resolved type:
[3233b91]89          unsigned char
[63ec5fa]90      with resolved type:
[3233b91]91        unsigned char
[dd857bb]92    ... to: nothing
[63ec5fa]93    with resolved type:
94      void
[dd857bb]95  (types:
96    void
97  )
98  Environment:
[b9afb1e]99
100
[1d17939]101castError.cfa:30:1 error: No reasonable alternatives for expression Explicit Cast of:
102  Name: sint
103... to:
104  instance of struct S with body 1
105  ... with parameters
106    char
107
[63ec5fa]108with resolved type:
109  instance of struct S with body 1
110  ... with parameters
111    char
112
Note: See TracBrowser for help on using the repository browser.