Files
swift-mirror/test/ClangImporter/objc_diags.swift
Pavel Yaskevich 1b4f9c33eb [Diagnostic] In no exact match cases diagnose labeling mismatch as a note
Each candidate with incorrect labels (but everything else lined up)
gets a note on its declarationm which says what is expected and what
has been given.
2019-07-25 14:49:52 -07:00

9 lines
343 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck %s -verify
import ObjectiveC
func instanceMethod(_ b: B) {
// Notes for labeling mismatch candidates are now attached to each individual declaration
b.method(1, 2.5) // expected-error {{no exact matches in call to instance method 'method'}}
}