Skip to content

Commit 5704830

Browse files
committed
Update SE-0384 to specify the Upcoming Feature Flag.
This feature flag was merged in swiftlang/swift#64746, to align with other upcoming Swift 6 features.
1 parent 7357e9f commit 5704830

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proposals/0384-importing-forward-declared-objc-interfaces-and-protocols.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Review Manager: Tony Allevato (https://github.com/allevato)
66
* Status: **Implemented (Swift 5.9)**
77
* Implementation: https://github.com/apple/swift/pull/61606
8+
* Upcoming Feature Flag: `ImportObjcForwardDeclarations`
89
* Review: ([pitch](https://forums.swift.org/t/pitch-importing-forward-declared-objective-c-classes-and-protocols/61926)) ([review](https://forums.swift.org/t/se-0384-importing-forward-declared-objective-c-interfaces-and-protocols/62392)) ([acceptance](https://forums.swift.org/t/accepted-se-0384-importing-forward-declared-objective-c-interfaces-and-protocols/62670))
910

1011
## Introduction
@@ -149,7 +150,7 @@ foo-bar-consumer.h:3:1: note: interface 'Foo' forward declared here
149150
^
150151
```
151152

152-
The feature is gated behind a new frontend flag `-enable-import-objc-forward-declarations`. This flag is on by default for Swift version 6 and onwards.
153+
In Swift 5.x, the feature is gated behind the upcoming feature flag `ImportObjcForwardDeclarations`. This flag is on by default for Swift version 6 and onwards.
153154

154155
The flag is always disabled in the REPL, as allowing it currently leads to confusing behavior. In the REPL, the environment in terms of whether a complete definition of some type Foo is available can change during execution. These examples show some of the confusing behavior:
155156

0 commit comments

Comments
 (0)