Files
swift-mirror/test/decl/var/lazy_properties_batch_mode.swift
Joe Groff da591acbca Sema: Make implicit elementwise struct init insensitive to lazy validation order.
With batch mode, other files may have forced lazy properties to get finalized before the implicit constructor is formed. Avoid the order dependency by making the behavior stable regardless of the type-checking phase of lazy declarations. Fixes rdar://problem/40903186.
2018-06-13 15:01:36 -07:00

5 lines
178 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -c -primary-file %s -o %t/a.o -primary-file %S/Inputs/lazy_properties_batch_mode_b.swift -o %t/b.o
func foo(_: B) {}