mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
6 lines
356 B
Swift
6 lines
356 B
Swift
// {"kind":"typecheck","signature":"swift::constraints::AllowTypeOrInstanceMemberFailure::diagnoseAsError()","signatureAssert":"Assertion failed: (TypeDC->isTypeContext() && \"Expected type decl context!\"), function diagnoseAsError"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
struct a func b<c >(c = a [
|
|
extension a {
|
|
subscript->Int
|