Open Jnosh opened 4 weeks ago
@aschwaighofer does your PR solve this issue as well? https://github.com/swiftlang/swift/pull/75967
In the meantime, can you try not making the state and property private
and promote them to internal
to see if this resolves the issue?
Yes, making State
(just the type, not even the property) internal
instead of private
works!
Yes, this is a dupe.
Description
The following example crashes the compiler. I can only reproduce the crash if the two type definitions are located in separate files.
Reproduction
Stack dump
Expected behavior
The example should compiler successfully.
Environment
Xcode 16.0 beta 5, macOS 15.0 Beta 6 (24A5320a)
swift-driver version: 1.113 Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1) Target: arm64-apple-macosx15.0
Additional information
Sample code
Compile with
swiftc ProtectedState.swift Wrapper.swift
to reproduce.