mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- Explicitly call out the decl kind - Clearly state the exact issue at hand - Correct the tests to check for the fixit rdar://88527799
13 lines
607 B
Swift
13 lines
607 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 4.2
|
|
|
|
// In -swift-version 4.2 mode, the old spelling produces a warning.
|
|
|
|
@_inlineable public func oldInlinableFunction() {}
|
|
// expected-warning@-1 {{'@_inlineable' has been renamed to '@inlinable'}}{{2-13=inlinable}}
|
|
|
|
@_versioned func oldVersionedFunction() {}
|
|
// expected-warning@-1 {{'@_versioned' has been renamed to '@usableFromInline'}}{{2-12=usableFromInline}}
|
|
|
|
@inlinable @usableFromInline func redundantAttribute() {}
|
|
// expected-warning@-1 {{'@usableFromInline' attribute has no effect on '@inlinable' global function 'redundantAttribute()'}}
|