blob: 64d880b7c5d716962f937dea354257b26894abdc [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
// REQUIRES: tools-release,no_asan
struct Stringly {
init(string: String) {}
init(format: String, _ args: Any...) {}
init(stringly: Stringly) {}
}
[Int](0..<1).map {
// expected-error@-1 {{reasonable time}}
print(Stringly(format: "%d: ",
$0 * 2 * 42 +
$0 * 2 * 42 +
$0 * 2 * 42
) + ["a", "b", "c", "d", "e", "f", "g"][$0 * 2] + "," + "," + ",")
}