mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Since constraint solver has been improved to diagnose more problems via "fixes", sometimes applying fixes might lead to producing solutions which are completely ambiguous when compared to each other, and/or are incomparable, which leads to `findBestSolutions` erasing all of them while trying to compute best "partial" solution, which is incorrect. Resolves: rdar://problem/42678836
6 lines
221 B
Swift
6 lines
221 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
|
|
|
|
public func * (lhs: Int, rhs: Character) -> String {
|
|
return String(repeating: String(rhs), count #^COMPLETE^#: lhs)
|
|
}
|