-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix bug when "End statement" is used in single-line if #47062
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
Conversation
src/Compilers/VisualBasic/Test/Semantic/Binding/Binder_Statements_Tests.vb
Outdated
Show resolved
Hide resolved
src/Compilers/VisualBasic/Test/Semantic/Binding/Binder_Statements_Tests.vb
Outdated
Show resolved
Hide resolved
src/Compilers/VisualBasic/Test/Semantic/Binding/Binder_Statements_Tests.vb
Outdated
Show resolved
Hide resolved
src/Compilers/VisualBasic/Test/Semantic/Binding/Binder_Statements_Tests.vb
Show resolved
Hide resolved
cston
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Youssef1313.
|
@cston, Can you look at the current build failure? I couldn't figure what's going on. |
src/Compilers/VisualBasic/Test/Semantic/Binding/Binder_Statements_Tests.vb
Show resolved
Hide resolved
|
One test suggestion, otherwise this looks fine. |
|
Hello @333fred! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
|
@RikkiGibson @333fred Need build re-trigger here. |
|
Thanks @Youssef1313. |
…-only-errors * upstream/master: (236 commits) Fix bug when "End statement" is used in single-line if (dotnet#47062) Solution asset cache refactoring (dotnet#46948) add specific tests to validate behavior between keys and snapshots Extract into separate files rename parameters rename parameters rename parameters rename parameters Add CancellationToken parameters to SyntaxTreeOptionsProvider Reuse nullable override checks for delegate conversions (dotnet#46953) Introduce warning for multiple entry points (sync + async) (dotnet#46832) Switch from throwing NotImplementedException and return E_NOTIMPL Delete Building for Core CLR.md (dotnet#47146) Adjust PrintMembers to avoid boxing and avoid extra space (dotnet#47095) Track asynchronous operation in InProcLanguageServer Use Task.FromCanceled where appropriate Apply suggestions from code review Address feedback Expose ParseOptions on generator context (dotnet#46919) Remove redundant statement in added tests ...
* upstream/master: (220 commits) Don't load generators that target net framework explicitly. (dotnet#47100) Update src/Features/Core/Portable/UnifiedSuggestions/UnifiedSuggestedActionsSource.cs Clean up redundant code action filtering Remove IActiveStatementSpanTracker (dotnet#46826) Disable API analysis if telemetry is disabled Update src/Workspaces/Remote/ServiceHub/Services/CodeAnalysis/CodeAnalysisService_SemanticClassificationCache.cs Doc Compress two values. PR feedback Revert Revert Lint Fix formatting Fire and forget Fix mangling Ensure that local functions are also marked as invalid if their containing methods are generic. Fix dependency graph for AnalyzerRunner Add AnalyzerRunner target for net5.0 Make VerifyForwardedTypes asynchronous Fix bug when "End statement" is used in single-line if (dotnet#47062) ...
Fixes #45158
The "OrElse" part was existing in
IsValidStatementTerminatorinParserScan.vb.It was removed in #14822 to fix #14761. However, this change caused the bug I mentioned in #45158.
If I put this "OrElse" part were it was originally, it will break the fix made in #14822. Hence, I moved it here where it's actually needed.
@AlekseyTs Please review.