blob: c75dff8d323d317b6487202a0bfa55d59a5374d2 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
// REQUIRES: tools-release,no_asserts
let _ = [0].reduce([Int]()) {
// expected-error@-1 {{reasonable time}}
return $0.count == 0 && ($1 == 0 || $1 == 2 || $1 == 3) ? [] : $0 + [$1]
}