Closed AnthonyLatsis closed 1 month ago
No response
@resultBuilder enum Builder<T> { static func buildBlock(_ t: T...) -> Bool {true} } protocol P { var x: Bool { @Builder<Int> get } } struct Test: P { var x: Bool { 1 } }
error: integer literal value '1' cannot be used as a boolean; did you mean 'true'? [integer_used_as_boolean_literal] var x: Bool { 1 } ^ true
Successful compilation.
Swift version 6.1-dev (614e8aa79a84486)
Description
No response
Reproduction
Expected behavior
Successful compilation.
Environment
Swift version 6.1-dev (614e8aa79a84486)
Additional information
No response