Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to produce diagnostic for expression #78148

Open
wtholliday opened this issue Dec 12, 2024 · 0 comments
Open

Failed to produce diagnostic for expression #78148

wtholliday opened this issue Dec 12, 2024 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@wtholliday
Copy link

Description

image

Reproduction

import SwiftUI

class ReferenceToolViewModel {

}

extension ReferenceToolViewModel: DropDelegate {
    func performDrop(info: DropInfo) -> Bool {
        true
    }
}

struct ReferenceToolView: View {

    @State var model: ReferenceToolViewModel

    var body: some View {
        Text("Drop an image here")
            .onDrop(of: [Image.self], delegate: model)
    }
}

Expected behavior

Informative error message

Environment

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0

Additional information

No response

@wtholliday wtholliday added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

1 participant