Files
swift-mirror/test/Constraints/inherited_generic_conformance.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

12 lines
175 B
Swift

// RUN: %target-swift-frontend -typecheck -verify %s
protocol P {}
class GenericBase<T>: P {}
class Derived: GenericBase<Int> {}
func foo<T: P>(_ x: T) {}
foo(Derived())