Files
swift-mirror/test/ClangImporter/objc_ibaction.swift
Doug Gregor facf1996b1 [Clang importer] Don't transfer IBAction attributes that don't make sense.
Fixes an error emitted on declarations imported from Objective-C,
rdar://problem/31776315.
2017-04-22 21:38:23 -07:00

7 lines
201 B
Swift

// RUN: %target-swift-frontend -emit-sil %s -import-objc-header %S/Inputs/ibaction.h -verify
// REQUIRES: objc_interop
func foo(object: ConformsToIBActionInProtocol) {
object.actionMethod(object)
}