Skip to content

Commit

Permalink
Update test for dotnet#12623
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Aug 16, 2016
1 parent 8b11bba commit 022c324
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1859,10 +1859,10 @@ static void Main()
Assert.Equal("(System.String, (System.Int32, System.Int32))", model.GetTypeInfo(literal).ConvertedType.ToTestDisplayString());
Assert.Equal(ConversionKind.ImplicitTupleLiteral, model.GetConversion(literal).Kind);

var nestedLiteral = literal.Arguments[1];
var nestedLiteral = literal.Arguments[1].Expression;
Assert.Equal(@"(1, 2)", nestedLiteral.ToString());
Assert.Null(model.GetTypeInfo(nestedLiteral).Type);
Assert.Null(model.GetTypeInfo(nestedLiteral).ConvertedType);
Assert.Equal("(System.Int32, System.Int32)", model.GetTypeInfo(nestedLiteral).Type.ToTestDisplayString());
Assert.Equal("(System.Int32, System.Int32)", model.GetTypeInfo(nestedLiteral).ConvertedType.ToTestDisplayString());
};

var comp = CompileAndVerify(source, expectedOutput: " (1, 2)", additionalRefs: new[] { ValueTupleRef, SystemRuntimeFacadeRef }, sourceSymbolValidator: validator);
Expand Down

0 comments on commit 022c324

Please sign in to comment.