[SR-12259] Function Builders with types conforming to ExpressibleBy... #54687
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
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode 11.3 Playground / Swift 5.1.3
Additional Detail from JIRA
md5: f3685517f91c2b32760fd3296922b4f3
Issue Description:
When using a type conforming to
ExpressibleByStringLiteral
within the FunctionBuilder closure, the compiler seems to have issues.Given the following type:
And using the function builder:
I am able to get this working:
But when adding another String, the compiler throws an error:
I could reproduce the same behavior when using
ExpressibleByIntegerLiteral
.The text was updated successfully, but these errors were encountered: