mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Fix one source of exponential behavior in the type checker."
This reverts commit 1efafbcd9b because
results in a regression in source compatibility with Swift 3.
It also adds a test demonstrating what was broken by the change.
I will take another look at fixing the exponential behavior that this
was attempting to fix.
Fixes rdar://problem/29977523.
This commit is contained in:
@@ -164,3 +164,15 @@ SR_3248().callback("test") // expected-error {{cannot convert value of type 'St
|
||||
|
||||
_? = nil // expected-error {{'nil' requires a contextual type}}
|
||||
_?? = nil // expected-error {{'nil' requires a contextual type}}
|
||||
|
||||
|
||||
infix operator !====
|
||||
func !====(_ lhs: AnyObject?, _ rhs: AnyObject?) -> Bool { return false }
|
||||
|
||||
func calleeRdar29977523(_ lhs: AnyObject?, _ rhs: AnyObject?) { }
|
||||
|
||||
func rdar29977523(lhs: AnyObject?!, rhs: AnyObject?) {
|
||||
if lhs !==== rhs { }
|
||||
|
||||
calleeRdar29977523(lhs, rhs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user