[SR-11694] functionBuilder regression! #54102
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
result builders
Feature: Result builders
source compatibility
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
MacOS 10.15.1 (19B88)
Xcode 11.2 (11B52)
Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: 277327ff6f38dd4b4195743839c8d446
Issue Description:
Can't compile my projects with Swift 5.1.2(Xcode 11.2) which compiles fine with Swift 5.1(Xcode 11.1)
I worked on https://github.com/MihaelIsaev/UIKitPlusExample yesterday and today, and few hours ago I updated my Xcode from 11.1 to 11.2 and started getting compiler error `Type of expression is ambiguous without more context` in function builders.
Thanks God I have a second macbook with Xcode 11.1 and I checked that the same project still compiles fine on it.
I tried to fix my code somehow to make it work on Swift 5.1.2 and Xcode 11.2 and had no luck, but figured out an interesting thing.
Please take a look at these screenshots below.
1. This code won't compile with Swift 5.1.2 while it compiles fine with Swift 5.1
2. But it compiles fine with Swift 5.1.2 another way
So it looks like this new Swift 5.1.2 (Xcode 11.2) feature described in Xcode's Release Notes broke compiler and now it won't work even with not complex expressions.
I also have a HTML library which uses function builders and projects based on it also won't compile in Xcode 11.2. So my work totally paralysed. I'm downloading Xcode 11.1 to continue working.
Any chances that it could be fixed in Swift 5.2 or Swift 5.1.3?
UPD: this is Xcode bug which is still not fixed in Xcode 11.3.1
The text was updated successfully, but these errors were encountered: