Files
swift-mirror/test/Sema/lifetime_depend_infer_interface.swift
Andrew Trick 4d4e3d9b6c Add tests for lifetime inference on .swiftinterface
Lazy inference must be used when type checking definitions in an interface file
for backward compatibility.
2025-03-20 12:28:39 -07:00

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