提交 e058e329 编写于 作者: M Manish Vasani

Address PR feedback and fix a broken unit test

上级 99b24842
......@@ -1321,7 +1321,7 @@ static void Main()
int x, y;
/*<bind>*/(x, y) = new C()/*</bind>*/;
System.Console.WriteLine(x + """" """" + y);
System.Console.WriteLine(x + "" "" + y);
}
}
";
......@@ -1339,9 +1339,6 @@ static void Main()
null
";
var expectedDiagnostics = new DiagnosticDescription[] {
// CS1003: Syntax error, ',' expected
// System.Console.WriteLine(x + "" "" + y);
Diagnostic(ErrorCode.ERR_SyntaxError, @"""""").WithArguments(",", "").WithLocation(14, 41),
// CS0121: The call is ambiguous between the following methods or properties: 'Base.Deconstruct(out int, out int)' and 'Base.Deconstruct(out long, out long)'
// /*<bind>*/(x, y) = new C()/*</bind>*/;
Diagnostic(ErrorCode.ERR_AmbigCall, "new C()").WithArguments("Base.Deconstruct(out int, out int)", "Base.Deconstruct(out long, out long)").WithLocation(12, 28),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册