Files
swift-mirror/validation-test/compiler_crashers/KeyPathSubscriptIndexHashableFailure-getLoc-bec305.swift
T
2026-04-07 10:10:05 +01:00

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]