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

[SR-14083] Failed to produce diagnostic on misusing PinnedScrollableViews #56472

Open
typesanitizer opened this issue Jan 22, 2021 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation type checker Area → compiler: Semantic analysis

Comments

@typesanitizer
Copy link

Previous ID SR-14083
Radar rdar://problem/73484729
Original Reporter @typesanitizer
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, DiagnosticsQoI, TypeChecker
Assignee None
Priority Medium

md5: ba31e290342af6ec2ddbe8b0d602e25d

is duplicated by:

  • SR-14091 Improve "ambiguous without more context" error on misusing SwiftUI's Axis

Issue Description:

import SwiftUI

struct S {}

struct V: View {
  var s: [S]
  var body: some View {
    let x = PinnedScrollableViews(s)
    Spacer()
  }
} 

This fails to produce a diagnostic on recent main @ 47a4ad2, as well as with Swift 5.3.2.

@typesanitizer
Copy link
Author

@swift-ci create

@typesanitizer
Copy link
Author

The linked JIRA has some more discussion on the failure mode.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

1 participant