mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
the main things still left behind the experimental flag(s) are - move-only classes (guarded by MoveOnlyClasses feature) - noimplicitcopy - the _borrow operator
7 lines
287 B
Swift
7 lines
287 B
Swift
// RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-experimental-move-only
|
|
|
|
// Temporary `_move` syntax is still parsed but raises a warning and fixit.
|
|
func oldMoveSyntax(x: String) {
|
|
_ = _move x // expected-warning{{renamed to 'consume'}} {{7-12=consume}}
|
|
}
|