// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingMicrosoft.CodeAnalysis.CSharp.Symbols;
usingMicrosoft.CodeAnalysis.Semantics;
usingSystem.Collections.Immutable;
usingSystem.Linq;
usingSystem.Runtime.CompilerServices;
usingMicrosoft.CodeAnalysis.Semantics;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.CSharp
{
...
...
@@ -445,7 +445,14 @@ internal partial class BoundCatchBlock : ICatchClause
var compilation = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugExe, parseOptions: patternParseOptions);
compilation.VerifyDiagnostics(
// (25,33): error CS0136: A local or parameter named 'x4' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
// (45,17): error CS0136: A local or parameter named 'x7' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
// (68,37): error CS0136: A local or parameter named 'x9' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter