Files
swift-mirror/test/SourceKit/Sema/objc_attr_without_import.swift
2016-08-10 23:52:02 -07:00

12 lines
318 B
Swift

// RUN: %sourcekitd-test -req=sema %s -- %s > %t.response
// RUN: %FileCheck -input-file=%t.response %s
// This tests that we are not crashing in SILGen.
// CHECK: @objc attribute used without importing module
@objc protocol Communicate {
var name: String { get }
}
class Cat : Communicate {
let name = "Felix"
}