Files
swift-mirror/test/multifile/external-protocol-conformance.swift
John McCall 1056a9bcb8 Add a multifile test that a dependency on an external protocol
conformance will block compilation if an associated type is invalid.
2016-04-12 09:02:25 -07:00

11 lines
333 B
Swift

// RUN: %target-swift-frontend -emit-ir -verify %s %S/Inputs/external-protocol-conformance/A.swift
func generic<T: P>(value: T) {}
// The goal here is to verify that a dependency on an invalid associated
// type in a protocol conformance in another file will prevent code
// generation.
func useGeneric() {
generic(value: A())
}