Files
swift-mirror/test/Sema/issue-74858.swift
2024-08-02 15:12:52 -04:00

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
}