Files
swift-mirror/test/decl/protocol/operators_in_protocols.swift
Doug Gregor faf1c45d14 Shuffle the files in the testsuite a bit to try to reflect language structure.
There's a lot more work to do here, but start to categorize tests
along the lines of what a specification might look like, with
directories (chapters) for basic concepts, declarations, expressions,
statements, etc.


Swift SVN r9958
2013-11-05 15:12:57 +00:00

9 lines
209 B
Swift

// RUN: %swift %s -parse -verify
protocol P {
def << (lhs: Self, rhs: Self) -> Self
def >> (lhs: Self, rhs: Self) -> Self
def <<= (lhs: @inout Self, rhs: Self)
def >>= (lhs: @inout Self, rhs: Self)
}