Skip to content

Commit 2c4a23c

Browse files
committed
1 parent ec67ca0 commit 2c4a23c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/SILGen/default_arguments.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,10 @@ func tupleDefaultArg(x: (Int, Int) = (1, 2)) {}
376376
// CHECK: return
377377
func callTupleDefaultArg() {
378378
tupleDefaultArg()
379-
}
379+
}
380+
381+
// FIXME: Should this be banned?
382+
func stupidGames(x: Int = 3) -> Int {
383+
return x
384+
}
385+
stupidGames(x:)()

0 commit comments

Comments
 (0)