Files
swift-mirror/test/expr/print/callexpr.swift
Louis D'hauwe 7ebdb8e6b4 [ASTPrinter] Fix expression printing for metatype access
And fix operators not printing when we can't get a `MemberOperatorRef`.
2022-02-02 12:43:22 -08:00

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)