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

public function does not support structs as function arguments #465

Open
wmanshu opened this issue Aug 22, 2019 · 1 comment
Open

public function does not support structs as function arguments #465

wmanshu opened this issue Aug 22, 2019 · 1 comment

Comments

@wmanshu
Copy link

wmanshu commented Aug 22, 2019

public func example(s: inout someStruct) // does not compile

func example(s: inout someStruct)// compiles

error: Function 'example' cannot have dynamic parameters

@wmanshu
Copy link
Author

wmanshu commented Aug 22, 2019

But Wei works fine in both. Is this designed on purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant