// (9,22): error CS1061: 'int' does not contain a definition for 'Deconstruct' and no extension method 'Deconstruct' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
// (11,23): error CS1061: 'int' does not contain a definition for 'Deconstruct' and no extension method 'Deconstruct' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
// (13,22): error CS1061: 'int' does not contain a definition for 'Deconstruct' and no extension method 'Deconstruct' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
var comp = CreateCompilationWithMscorlib(source, references: new[] { new CSharpCompilationReference(comp1), new CSharpCompilationReference(comp2) }, options: TestOptions.ReleaseExe);
var v = CompileAndVerify(comp, expectedOutput:@"
var v = CompileAndVerify(comp, expectedOutput:@"
C1.M
C2.M
");
v.VerifyIL("C3.Main()",
@"
v.VerifyIL("C3.Main()",
@"
{
// Code size 31 (0x1f)
.maxstack 2
...
...
@@ -3497,16 +3497,16 @@ public ValueTuple(T1 item1, T2 item2)
// (13,37): error CS1525: Invalid expression term ';'
...
...
@@ -8302,7 +8483,7 @@ static void Main()
}
";
var comp = CreateCompilationWithMscorlib(source,
var comp = CreateCompilationWithMscorlib(source,
references: s_valueTupleRefs);
comp.VerifyDiagnostics(
// (8,42): error CS1061: '(int, int)' does not contain a definition for 'a4' and no extension method 'a4' accepting a first argument of type '(int, int)' could be found (are you missing a using directive or an assembly reference?)
// (8,42): error CS1061: '(int, int, int, int, int, int, int, int, int)' does not contain a definition for 'Item10' and no extension method 'Item10' accepting a first argument of type '(int, int, int, int, int, int, int, int, int)' could be found (are you missing a using directive or an assembly reference?)