@@ -97,24 +97,24 @@ func test_topLevelEvaluation(topLevelArgument: Int) {
97
97
98
98
func test_trapsAndOverflows( ) {
99
99
// The error message below is generated by the traditional constant folder.
100
- // The constant folder responsible for #assert does not generate an overflow
100
+ // The interpreter responsible for #assert does not generate an overflow
101
101
// error because the traditional constant folder replaces the condition with
102
- // a constant before the #assert constant folder sees it.
102
+ // a constant before the #assert interpreter sees it.
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
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.
107
+ // The interpreter responsible for #assert does generate an additional error
108
+ // message.
109
109
// expected-error @+2 {{integer literal '123231' overflows when stored into 'Int8'}}
110
110
// expected-error @+1 {{#assert condition not constant}}
111
111
#assert( Int8 ( 123231 ) > 42 )
112
112
// expected-note @-1 {{integer overflow detected}}
113
113
114
114
// The error message below is generated by the traditional constant folder.
115
- // The constant folder responsible for #assert does not generate an overflow
115
+ // The interpreter responsible for #assert does not generate an overflow
116
116
// error because the traditional constant folder replaces the condition with
117
- // a constant before the #assert constant folder sees it.
117
+ // a constant before the #assert interpreter sees it.
118
118
// expected-error @+2 {{arithmetic operation '124 + 8' (on type 'Int8') results in an overflow}}
119
119
// expected-error @+1 {{assertion failed}}
120
120
#assert( Int8 ( 124 ) + 8 > 42 )
0 commit comments