Files
swift-mirror/test/Constraints/rdar62890683.swift
2020-05-07 16:32:13 -07:00

12 lines
146 B
Swift

// RUN: %target-typecheck-verify-swift
class C {
init!() {}
}
func foo<T>(_: T.Type, _ fn: () -> T) {}
func test() {
foo(C.self) { C() }
}