forked from apple/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ConstraintSolver] Skip generic overloads only if non-generic choices…
… produce higher score solutions Restrict skipping of the generic overloads only to the situations when non-generic solution doesn't have any restrictions/fixes, because there is a possibility that generic overload could produce a better solution. Resolves: rdar://problem/32204609.
- Loading branch information
Showing
3 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// RUN: rm -rf %t | ||
// RUN: mkdir -p %t | ||
// RUN: %target-build-swift %s -o %t/a.out | ||
// RUN: %target-run %t/a.out | ||
|
||
// REQUIRES: executable_test | ||
|
||
let x: Int! = nil | ||
let y: Int! = 1 | ||
|
||
print(x == y) |