mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
564 B
Swift
13 lines
564 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 {{'@inlinable' declaration is already '@usableFromInline'}}
|