Files
swift-mirror/test/attr/attr_inlinable_old_spelling.swift
Slava Pestov f7697291df Parse: Backward compatibility for old spellings @_inlineable and @_versioned
Just parse these as @inlinable and @versioned, then emit a warning
(Swift 4.2 and below) or error (Swift 5).
2018-03-30 21:55:31 -07:00

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}}