dotnet/roslyn

VB - wrong execution flow while debugging

开放

#48,575 创建于 2020年10月13日

 (0 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-InteractiveBugLanguage-VBhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Version Used: current - VS 16.7.6 Steps to Reproduce:

    Function Test() As Boolean
        Dim sobj = New Object
        Dim o = 1

        SyncLock sobj
            If o = 1 Then
            Else
                Return False
            End If
        End SyncLock

        Return True
    End Function

Expected Behavior: Should not reach 'Return False' section of If statement Actual Behavior: Debugger reaches 'Return False' section of If statement, but without returning from function

贡献者指南