mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There are possible situations when we find solutions with String and String -> UnsafePointer conversions at the same time for expressions with default string literals. In order to disambiguite such situations let's prefer solutions without String -> UnsafePointer conversions if possible.
12 lines
190 B
Swift
12 lines
190 B
Swift
// 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)
|