-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Closed
Copy link
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfproperty wrappersFeature: property wrappersFeature: property wrappers
Description
| Previous ID | SR-10899 |
| Radar | rdar://problem/51588022 |
| Original Reporter | @keith |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Environment
Xcode 11.0 beta 1 (11M336w)
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, PropertyWrappers |
| Assignee | @DougGregor |
| Priority | Medium |
md5: 7bf2d475d5ff9f3c0a4ec85e7e64b457
relates to:
- SR-10850 ':0:' Location-less Errors in Test Target
Issue Description:
With this code:
@propertyDelegate
struct Foo {
var value: String { "hi" }
}
struct Bar {
@Foo var thing: Bool
}
You get this error:
% DEVELOPER_DIR=/Applications/Xcode-11.0.0b1.app xcrun swift foo.swift
<unknown>:0: error: cannot convert return expression of type 'String' to return type 'Bool'
Which makes this error not show on a line in Xcode
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfproperty wrappersFeature: property wrappersFeature: property wrappers