Skip to content

Commit

Permalink
test: parameter that is only referenced in bound is still unused
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Feb 22, 2024
1 parent b611b44 commit a59c551
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ package tests.validation.other.declarations.segments.unusedParameters
segment mySegment(
// $TEST$ warning "This parameter is unused and can be removed."
»unused«: Int,
// $TEST$ warning "This parameter is unused and can be removed."
»onlyHasBound«: Int,
// $TEST$ no warning "This parameter is unused and can be removed."
»used«: Int
) {
) where {
onlyHasBound < 0
} {
used;

/*
Expand Down

0 comments on commit a59c551

Please sign in to comment.