Files
swift-mirror/validation-test/compiler_scale/struct_nested.gyb
Slava Pestov 4fa48473bc Sema: Stop finalizing struct and enum members
Since getStoredProperties() is a request that lowers lazy properties
and property wrappers to their underlying storage, and SIL can validate
stored property and enum element types, there's no longer any need for
Sema to explicitly finalize members of structs and enums. SILGen can
trigger any necessary type checkin work just by lowering a struct or
enum type.

Now the only remaining reason we need finalizeDecl() is adding implicit
methods to classes, and synthesizing accessors for storage in classes
and protocols.
2019-07-17 18:07:03 -04:00

11 lines
259 B
Plaintext

// RUN: %scale-test --sum-multi --typecheck --begin 5 --end 16 --step 5 --select NumDeclsValidated %s
// REQUIRES: OS=macosx
// REQUIRES: asserts
struct Struct${N} {
% if int(N) > 1:
var next: Struct${int(N)-1}.Nested? = nil
% end
struct Nested {}
}