[SR-10991] Function Builders & Opaque return types error Xcode 11 / Swift 5.1 #53381
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
opaque types
Feature → types: opaque types
result builders
Feature: Result builders
Environment
Xcode 11 Beta 2
Swift 5.1
MacOS 10.14.5
Additional Detail from JIRA
md5: c521fc74c5b138b728eac2b09634623a
relates to:
Issue Description:
When using a function builder in combination with an opaque return type, I get the following error:
From what I read of this error, `Commands` should definitely be convertible to `some Commands`, but to be sure I also tested with a scenario where my functionBuilder instead of `Commands` would return a type conforming to `Commands` resulting in the same error.
You can find the sourcecode (GH gist) here: https://gist.github.com/MrLotU/a3ec8857871ee516a5bd36227976c7e7
The text was updated successfully, but these errors were encountered: