Files
swift-mirror/validation-test/compiler_scale/protocol_members.gyb
2017-11-15 16:26:27 -08:00

18 lines
521 B
Plaintext

// RUN: %scale-test --sum-multi --typecheck --begin 5 --end 16 --step 5 --select validateDecl %s
// REQUIRES: OS=macosx
// REQUIRES: asserts
protocol Protocol${N} {
% if int(N) > 1:
func method(_: Protocol${int(N)-1})
var prop: Protocol${int(N)-1} { get set }
static var prop: Protocol${int(N)-1} { get set }
subscript(n: Int) -> Protocol${int(N)-1} { get set }
% else:
func method()
var prop: Int { get set }
static var prop: Int { get set }
subscript(n: Int) -> Int { get set }
% end
}