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