Files
swift-mirror/validation-test/compiler_crashers_fixed/issue-55439.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

15 lines
418 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -index-store-path %t/idx -o %t/file.o -typecheck -primary-file %s -verify
// https://github.com/apple/swift/issues/55439
protocol MyProto {
func compile() throws
}
func compile(x: MyProto) throws {
try x.compile
// expected-error@-1 {{function is unused}}
// expected-warning@-2 {{no calls to throwing functions occur within 'try' expression}}
}