Closed
Description
Description
Autocomplete is completely broken for values that depend on a result builder and type inference.
Reproduction
- Clone https://github.com/pointfreeco/swift-composable-architecture
- Check out tag 1.9.2 (we may be working around the issue in more recent versions due to this bug)
- Open ComposableArchitecture.xcworkspace (Xcode 15.3)
- Select the Todos target
- Open TodosTests.swift
- From any test, try to autocomplete from
store.
(e.g.store.send
), which is a value that depends on aTestStore.init
that uses a result builder
This can be reproduced outside of tests, too. After the first 3 steps above:
- Select the SyncUps target
- Open the App.swift file in the SyncUps project (or search for "struct SyncUpsApp")
- Try to autocomplete from
store.
(e.g.store.send
), which is a value that depends on aStore.init
that uses a result builder.
Expected behavior
Autocomplete should work.
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
No response