mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
11 lines
259 B
Plaintext
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 {}
|
|
}
|