mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Something changed here between the removal of shrink() and it's re-introduction, and we now record constraints that contain UnboundGenericType, which crashes in matchTypes(). As a narrow workaround, let's just ignore the contextual type if contains an UnboundGenericType. Fixes rdar://145092838.
6 lines
131 B
Swift
6 lines
131 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func f(a: Array<Int>, n: Int) {
|
|
let _: Array = a.prefix(n) + a.suffix(a.count - n - 1)
|
|
}
|