We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func f(x: Int = 42) -> Int { return x }
f() // 有效,使用默认值 f(7) // 有效,提供了值 // <- 无效的 f(x: 7) // 无效,该参数没有外部名称 // <- 有效的
The text was updated successfully, but these errors were encountered:
Update 06_Declarations.md
2128ce6
#1195
已修改
Sorry, something went wrong.
No branches or pull requests
func f(x: Int = 42) -> Int { return x }
f() // 有效,使用默认值
f(7) // 有效,提供了值 // <- 无效的
f(x: 7) // 无效,该参数没有外部名称 // <- 有效的
The text was updated successfully, but these errors were encountered: