Files
swift-mirror/test/attr/testable_invalid_decl.swift
Harlan Haskins f4b0e0e7b6 [Diagnostics] Mark invalid ‘@testable import’ as fatal
If this isn’t fatal, this will just end up cascading to a bunch of “could not find member … in …” errors, which hides the real issue.
2019-01-29 14:52:40 -08:00

4 lines
162 B
Swift

// RUN: %target-swift-frontend -typecheck -verify %s
@testable func foo() {} // expected-error {{@testable may only be used on 'import' declarations}} {{1-11=}}