Skip to content

Commit 79ef0b7

Browse files
committed
SILGen: Add regression test for https://bugs.swift.org/browse/SR-11623
1 parent 201c460 commit 79ef0b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/SILGen/default_arguments.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,3 +383,9 @@ func stupidGames(x: Int = 3) -> Int {
383383
return x
384384
}
385385
stupidGames(x:)()
386+
387+
func genericMagic<T : ExpressibleByStringLiteral>(x: T = #file) -> T {
388+
return x
389+
}
390+
391+
let _: String = genericMagic()

0 commit comments

Comments
 (0)