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

Documentation: Typo #13342

Open
shukanov-artyom opened this issue Nov 24, 2017 · 0 comments
Open

Documentation: Typo #13342

shukanov-artyom opened this issue Nov 24, 2017 · 0 comments

Comments

@shukanov-artyom
Copy link

"C# similarities and differences" document ( https://github.com/rsdn/nemerle/wiki/CSharp-Similarities-and-Differences ) contains a typo:

the following C# code:

if (cond)
return foo;
do_something ();
return bar;

Corresponds to the following Nemerle code:

match(cond){
| true => foo
| _ => {doSomething(); foo}
}

While a correct version is:

match(cond){
| true => foo
| _ => {doSomething(); bar}
}

Obviously "foo" should not be returned in both cases, the second case must return "bar"

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