mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
365 B
Swift
13 lines
365 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 5
|
|
|
|
// https://github.com/apple/swift/issues/58661
|
|
class I58661 {
|
|
func throwing<T>() throws -> T { // expected-note{{in call to function 'throwing()'}}
|
|
throw Swift.fatalError()
|
|
}
|
|
|
|
func reproduce() {
|
|
let check = try? throwing() // expected-error{{generic parameter 'T' could not be inferred}}
|
|
}
|
|
}
|