mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Just parse these as @inlinable and @versioned, then emit a warning (Swift 4.2 and below) or error (Swift 5).
8 lines
347 B
Swift
8 lines
347 B
Swift
// RUN: %target-typecheck-verify-swift -swift-version 5
|
|
|
|
@_inlineable public func oldInlinableFunction() {}
|
|
// expected-error@-1 {{'@_inlineable' has been renamed to '@inlinable'}}{{2-13=inlinable}}
|
|
|
|
@_versioned func oldVersionedFunction() {}
|
|
// expected-error@-1 {{'@_versioned' has been renamed to '@usableFromInline'}}{{2-12=usableFromInline}}
|