mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This commit changes the behaviour of the error for passing a temporary pointer conversion to an @_nonEphemeral parameter such that it doesn't affect overload resolution. This is done by recording the fix with an impact of zero, meaning that we don't touch the solution's score. In addition, this change means we no longer need to perform the ranking hack where we favour array-to-pointer, as the disjunction short-circuiting will continue to happen even with the fix recorded.
10 lines
203 B
Swift
10 lines
203 B
Swift
|
|
@_fixed_layout
|
|
public var overloadedVar = 0
|
|
|
|
// Resilient, therefore produces ephemeral pointer.
|
|
public var overloadedVarOnlyOneResilient = 0
|
|
|
|
@_fixed_layout
|
|
public var overloadedVarDifferentTypes = ""
|