mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
6 lines
442 B
Swift
6 lines
442 B
Swift
// {"kind":"typecheck","original":"35eb43bc","signature":"swift::constraints::KeyPathSubscriptIndexHashableFailure::getLoc() const","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast","signatureNext":"KeyPathSubscriptIndexHashableFailure::diagnoseAsError"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
struct a {
|
|
subscript( Hashable) Int
|
|
struct b { c = \a[b]
|