blob: 5b4720297a3b6eb5543c0ceb2f52ca7b42a696c3 [file] [log] [blame]
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
public struct X { }
public struct Y { }
public class Foo {
func doSomething(x: X, y: Y) { }
func doSomethingElse(x: X) { }
}
// CHECK-LABEL: sil hidden @_TF15argument_labels7testFoo
func testFoo(foo: Foo, x: X, y: Y) {
// CHECK: class_method %0 : $Foo, #Foo.doSomething!1 : (Foo) -> (X, Y) -> ()
foo.doSomething(x: x, y: y)
// CHECK: class_method %0 : $Foo, #Foo.doSomethingElse!1 : (Foo) -> (X) -> ()
foo.doSomethingElse(x: x)
}