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-13461] Unnecessarily Strict Assert in DebugAsserts Build #55903

Closed
CodaFi opened this issue Aug 27, 2020 · 1 comment
Closed

[SR-13461] Unnecessarily Strict Assert in DebugAsserts Build #55903

CodaFi opened this issue Aug 27, 2020 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@CodaFi
Copy link
Member

CodaFi commented Aug 27, 2020

Previous ID SR-13461
Radar None
Original Reporter @CodaFi
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @CodaFi
Priority Medium

md5: 534e0c50c221ec95d4cc4c356f2395c1

Issue Description:

final class Klass {
  static var current: Klass {
    fatalError()
  }
}
private struct Build<T> {
  let val: T
  unowned let bindings = Klass.current
}
private func phase<T>(_ val: T) -> Build<T> {
  return Build<T>(val: val)
}

// assert(field->getType()->isEqual(field->getParentInitializer()->getType()));
@CodaFi
Copy link
Member Author

CodaFi commented Aug 27, 2020

#33668

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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
Projects
None yet
Development

No branches or pull requests

1 participant