Files
swift-mirror/test/IRGen/dependent_generic_base_class_constraint.swift
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

13 lines
222 B
Swift

// RUN: %target-swift-frontend -emit-ir -verify %s
class GenericClass<T> { }
protocol MyProtocol { }
class MyClass {
func myFunction<T, O: GenericClass<T>>(myArg: O) -> T where T: MyProtocol {
fatalError()
}
}