未验证 提交 4f522078 编写于 作者: Y Youssef Victor 提交者: GitHub

Update StaticLocalDeclarationTests.vb

上级 bd412637
......@@ -735,25 +735,6 @@ End Module</file>
Diagnostic(ERRID.ERR_IterationVariableShadowLocal1, "sl").WithArguments("sl"),
Diagnostic(ERRID.ERR_IterationVariableShadowLocal1, "sl").WithArguments("sl"))
End Sub
<Fact>
<WorkItem(48307, "https://github.com/dotnet/roslyn/issues/48307")>
Public Sub Bug48307()
Dim compilationDef =
<compilation name="Bug48307">
<file name="a.vb">
Imports System
Module Module1
Sub Main()
Dim Length = From s In {""} Select s.Length
End Sub
End Module</file>
</compilation>
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef)
compilation.VerifyDiagnostics()
End Sub
End Class
End Namespace
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册