mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
To answer "did the user specify this, or is it implicit", stick a couple of is-implicit bits in InfixOperatorDecl, and thread them through serializaton/deserialization. Swift SVN r20067
48 lines
570 B
Plaintext
48 lines
570 B
Plaintext
|
|
infix operator %%% {
|
|
associativity left
|
|
precedence 200
|
|
}
|
|
|
|
func %%%(lhs: Int, rhs: Int) -> Int
|
|
|
|
struct BarGenericSwiftStruct1<T> {
|
|
init(t: T)
|
|
func bar1InstanceFunc()
|
|
}
|
|
|
|
struct BarGenericSwiftStruct2<T : BarProtocol, U> {
|
|
init(t: T, u: U)
|
|
func bar2InstanceFunc()
|
|
}
|
|
|
|
protocol BarProtocol {
|
|
func instanceFunc()
|
|
}
|
|
|
|
|
|
/// FooSwiftStruct Aaa.
|
|
/**
|
|
* Bbb.
|
|
* Ccc.
|
|
*/
|
|
struct FooSwiftStruct {
|
|
|
|
/// fooInstanceFunc Aaa.
|
|
/**
|
|
* Bbb
|
|
*/
|
|
/**
|
|
* Ccc.
|
|
*/
|
|
func fooInstanceFunc()
|
|
init()
|
|
}
|
|
|
|
func hiddenImport()
|
|
|
|
func overlayedFoo()
|
|
|
|
func visibleImport()
|
|
|