mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Lazy inference must be used when type checking definitions in an interface file for backward compatibility.
13 lines
462 B
Swift
13 lines
462 B
Swift
// RUN: %target-typecheck-verify-swift \
|
|
// RUN: -I %S/Inputs \
|
|
// RUN: -enable-experimental-feature LifetimeDependence \
|
|
// RUN: -enable-experimental-lifetime-dependence-inference
|
|
|
|
// REQUIRES: swift_feature_LifetimeDependence
|
|
|
|
// Test that type checking continues to handle inference of lifetime
|
|
// dependencies that may be required in older (early
|
|
// 2025) .swiftinterface files. Source-level type checking is more strict.
|
|
|
|
import lifetime_depend_infer
|