-
Notifications
You must be signed in to change notification settings - Fork 479
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
Enhance the functionality of the + operator #3397
Conversation
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3 |
Pull Request Test Coverage Report for Build 106449
💛 - Coveralls |
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3 |
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.6.3 |
make + operator support string concatenation
1 + 2 + 3 -> 6
"a" + "b" -> "ab"
“a” + 1 -> "a1"
1 + 2 + "a" -> "3a"
1 + 2 + "a" + 3 + 4 -> "3a34"
true + "a" -> throw exception
null + 1 -> throw exception
null + "b" -> "b"
add
function has the same implement result as+
ref: #3249