Files
swift-mirror/validation-test/compiler_scale/enum_members.gyb
Robert Widmann 28b66f6225 Switch DeclValidation Counter to Request Counter
Now that validateDecl is gone, stop duplicating work here and use the
request counter instead.
2019-10-28 15:36:50 -07:00

21 lines
453 B
Plaintext

// RUN: %scale-test --sum-multi --begin 5 --end 16 --step 5 --select InterfaceTypeRequest %s
// REQUIRES: asserts
enum Enum${N} {
case OK
case Error
% if int(N) > 1:
func method(_: Enum${int(N)-1}) {}
static var prop = Enum${int(N)-1}.OK
subscript(n: Int) -> Enum${int(N)-1} { return Enum${int(N)-1}.OK }
% else:
func method() {}
static var prop = 0
subscript(n: Int) -> Int { return 0 }
% end
struct Nested {}
}