File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,9 @@ func test_trapsAndOverflows() {
103
103
// expected-error @+1 {{arithmetic operation '124 + 92' (on type 'Int8') results in an overflow}}
104
104
#assert( ( 124 as Int8 ) + 92 < 42 )
105
105
106
- // The error message below is generated by the traditional constant folder.
107
- // The constant folder responsible for #assert does generate an error message
108
- // because the traditional constant folder does not replace the condition
109
- // with a constant.
106
+ // One error message below is generated by the traditional constant folder.
107
+ // The constant folder responsible for #assert does generate an additional
108
+ // error message.
110
109
// expected-error @+2 {{integer literal '123231' overflows when stored into 'Int8'}}
111
110
// expected-error @+1 {{#assert condition not constant}}
112
111
#assert( Int8 ( 123231 ) > 42 )
You can’t perform that action at this time.
0 commit comments