mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
11 lines
484 B
Swift
11 lines
484 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse %s -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import ObjectiveC
|
|
|
|
func instanceMethod(b: B) {
|
|
b.method(1, 2.5) // expected-error {{argument labels '(_:, _:)' do not match any available overloads}}
|
|
// expected-note @-1 {{overloads for 'method' exist with these partially matching parameter lists: (Int32, onExtB: Double), (Int32, with: Float), (Int32, onExtA: Double), (Int32, onCat1: Double), (Int32, with: Double)}}
|
|
}
|