Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0154-sr7457.swift
Doug Gregor bb04d87cd8 [AST] Make TypeBase::adjustSuperclassMemberDeclType() more robust.
When performing substitutions in this function, allow them to fail
more gracefully by producing error types. Fixes SR-7457 /
rdar://problem/39492060.
2018-04-20 11:14:50 -07:00

17 lines
317 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
protocol Proto { }
class Class {
func foo<A>(callback: (A) -> Void) where A: Proto {
}
func foo<A, B>(callback: (A, B) -> Void) where A: Proto, B: Proto {
}
}
class Child: Class {
override func foo<A>(callback: (A) -> Void) where A : Proto {
}
}