mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is mostly a "don't crash" commit, but since member XREFs don't specify which module they're looking in, they can actually pick up members from the module currently being compiled...which may not have a type yet. rdar://problem/21071045 Swift SVN r30895
22 lines
460 B
Swift
22 lines
460 B
Swift
import has_alias
|
|
@exported import struct_with_operators
|
|
|
|
public func numeric(x: MyInt64) {}
|
|
public func conditional(x: AliasWrapper.Boolean) {}
|
|
public func longInt(x: Int.EspeciallyMagicalInt) {}
|
|
|
|
public func numericArray(x: IntSlice) {}
|
|
|
|
|
|
public protocol ExtraIncrementable {
|
|
prefix func +++(inout base: Self)
|
|
}
|
|
|
|
extension SpecialInt : ExtraIncrementable {}
|
|
|
|
public protocol DefaultInitializable {
|
|
init()
|
|
}
|
|
|
|
extension SpecialInt : DefaultInitializable {}
|