Open
Description
Description
The enclosed project contains a compile-time error at ContentView.swift:92: the key path is incorrect (among other things, executableInfo
is an optional value).
Modifying the erroneous expression to \.executableInfo?.path
causes the type checker to time out: "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions."
Steps to reproduce
Build the attached project with the specified tools.
Expected behavior
A diagnostic indicating what's wrong with the key path.
Environment
$ /Library/Developer/Toolchains/swift-5.8-DEVELOPMENT-SNAPSHOT-2023-02-01-a.xctoolchain/usr/bin/swiftc -version
Apple Swift version 5.8-dev (LLVM 44d4f9d4b49845f, Swift 74ab40be0d09183)
Target: arm64-apple-macosx13.0
$ xcodebuild -version
Xcode 14.2
Build version 14C18
Deployment target: macOS 13.1