Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SE-0031] Adjusting 'inout' Declarations for Type Decoration #1333

Merged
merged 4 commits into from
Feb 26, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[Parser] add test for 'inout' deprecation warning
  • Loading branch information
dduan committed Feb 26, 2016
commit fb66ec8ea40cd3f1b9a89dc923dffdd88fbb6d2f
2 changes: 2 additions & 0 deletions test/attr/attr_inout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ func ff(x: (inout Int, inout Float)) { } // expected-error {{'inout' is only va
enum inout_carrier {
case carry(inout Int) // expected-error {{'inout' is only valid in parameter lists}}
}

func deprecated(inout x: Int) {} // expected-warning {{'inout' before a parameter name is deprecated, place it before the parameter type instead}}