mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
255 B
Swift
12 lines
255 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
// Test case submitted to project by https://github.com/tmu (Teemu Kurppa)
|
|
|
|
extension String : RangeReplaceableCollection {}
|
|
|
|
func f<S : RangeReplaceableCollection>(seq: S) -> S {
|
|
return S() + seq
|
|
}
|
|
|
|
f("a")
|