Files
swift-mirror/test/Serialization/Inputs/has_xref.swift
Chris Lattner 8991456ff2 Switch infix/postfix/prefix to be declaration modifiers instead of attributes,
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
2014-07-14 15:51:49 +00:00

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 {}