mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
eliminating the @'s from them when used on func's. This is progress towards <rdar://problem/17527000> change operator declarations from "operator prefix" to "prefix operator" & make operator a keyword This also consolidates rejection of custom operator definitions into one place and makes it consistent, and adds postfix "?" to the list of rejected operators. This also changes the demangler to demangle weak/inout/postfix and related things without the @. Swift SVN r19929
16 lines
361 B
Swift
16 lines
361 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 {}
|