Skip to content

Commit

Permalink
Expand 'Duplication_01'
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson committed Jul 7, 2022
1 parent f49b5ca commit 3e838a1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,19 +746,20 @@ class Program
static void Main()
{
C.M();
global::C.M();
}
}
""";

var verifier = CompileAndVerify(new[] { source1 + main, source2 }, expectedOutput: "1");
var verifier = CompileAndVerify(new[] { source1 + main, source2 }, expectedOutput: "11");
var comp = (CSharpCompilation)verifier.Compilation;
var cs = comp.GetMembers("C");
var tree = comp.SyntaxTrees[0];
var expectedSymbol = cs[0];
Assert.Equal(firstMetadataName, expectedSymbol.MetadataName);
verify();

verifier = CompileAndVerify(new[] { source1, source2 + main }, expectedOutput: "2");
verifier = CompileAndVerify(new[] { source1, source2 + main }, expectedOutput: "22");
comp = (CSharpCompilation)verifier.Compilation;
cs = comp.GetMembers("C");
tree = comp.SyntaxTrees[1];
Expand Down

0 comments on commit 3e838a1

Please sign in to comment.