mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Unfortunately the diagnostic is terrible. Fixes https://github.com/swiftlang/swift/issues/74858
10 lines
253 B
Swift
10 lines
253 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
typealias Alias<T> = Int
|
|
|
|
func invalidSpecializeExpr(_ x: Alias<Int>.Type) {
|
|
let y = x<Int>.self
|
|
// expected-error@-1 {{type of expression is ambiguous without a type annotation}}
|
|
// FIXME: Bad diagnostic
|
|
}
|