Skip to content

[SR-10899] propertyDelegate usage doesn't report line / column for invalid type #53289

@keith

Description

@keith
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.compilerThe Swift compiler itselfproperty wrappersFeature: property wrappers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions