mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
388 B
Swift
16 lines
388 B
Swift
// RUN: %target-swift-frontend -print-ast %s 2>&1 | %FileCheck %s
|
|
|
|
func test(a: Int, b: Int = 0, c: Int = 1) { }
|
|
|
|
test(a: 0)
|
|
test(a: 0, b: 0)
|
|
test(a: 0, b: 0, c: 0)
|
|
// CHECK: test(a: 0)
|
|
// CHECK: test(a: 0, b: 0)
|
|
// CHECK: test(a: 0, b: 0, c: 0)
|
|
|
|
class Constants { static var myConst = 0 }
|
|
func test(foo: Int) { }
|
|
// CHECK-LABEL: test(foo: Constants.myConst)
|
|
test(foo: Constants.myConst)
|