mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
829 B
Swift
17 lines
829 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=AmbiguousMethods -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK: func increment(_ a: Int32) -> Int32
|
|
// CHECK: mutating func incrementMutating(_ a: Int32) -> Int32
|
|
|
|
// CHECK: mutating func incrementMutating(_ a: Int32, _ b: Int32, _ c: inout Int32)
|
|
// CHECK: func increment(_ a: Int32, _ b: Int32, _ c: inout Int32)
|
|
|
|
// CHECK: mutating func incrementMutating(_ a: inout Int32, _ b: Int32)
|
|
// CHECK: func increment(_ a: inout Int32, _ b: Int32)
|
|
|
|
// CHECK: func numberOfMutableMethodsCalled() -> Int32
|
|
// CHECK: mutating func numberOfMutableMethodsCalledMutating() -> Int32
|
|
|
|
// CHECK: struct HasAmbiguousMethods2
|
|
// CHECK: func increment(_ a: Int32) -> Int32
|
|
// CHECK-NOT: mutating func incrementMutating(_ a: Int32) -> Int32 |