Skip to content

Commit dd81cb9

Browse files
authored
checker: change the warning more than 1000 possibilities in match range to a notice (#19862)
1 parent b7400fc commit dd81cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/checker/match.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ fn (mut c Checker) match_exprs(mut node ast.MatchExpr, cond_type_sym ast.TypeSym
281281
if both_low_and_high_are_known {
282282
high_low_cutoff := 1000
283283
if high - low > high_low_cutoff {
284-
c.warn('more than ${high_low_cutoff} possibilities (${low} ... ${high}) in match range',
284+
c.note('more than ${high_low_cutoff} possibilities (${low} ... ${high}) in match range may affect compile time',
285285
branch.pos)
286286
}
287287
for i in low .. high + 1 {

0 commit comments

Comments
 (0)