Make NonEscapableTypes as a suppressible experimental feature

This commit is contained in:
Meghana Gupta
2024-09-13 00:42:39 -07:00
parent 9184923089
commit 68bfc0d3b4
6 changed files with 217 additions and 14 deletions

View File

@@ -117,7 +117,11 @@ import NoncopyableGenerics_Misc
// CHECK-MISC: extension {{.*}}.Outer.InnerVariation2 : Swift.Escapable where D : Swift.Escapable {
// CHECK-MISC: extension {{.*}}.Outer.InnerStruct {
// CHECK-MISC-NEXT: #if compiler(>=5.3) && $NonescapableTypes
// CHECK-MISC-NEXT: public func hello<T>(_ t: T) where T : ~Escapable
// CHECK-MISC-NEXT: #else
// CHECK-MISC-NEXT: public func hello<T>(_ t: T)
// CHECK-MISC-NEXT: #endif
// CHECK-MISC: @_preInverseGenerics public func old_swap<T>(_ a: inout T, _ b: inout T) where T : ~Copyable