// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
varverifier=CompileAndVerify(source,expectedOutput:@"1 4 7 Alice 7 Bob 3",additionalRefs:new[]{MscorlibRef},parseOptions:TestOptions.Regular.WithTuplesFeature());
varverifier=CompileAndVerify(source,expectedOutput:@"1 4 7 Alice 7 Bob 3",additionalRefs:new[]{MscorlibRef,ValueTupleRef,SystemRuntimeFacadeRef},parseOptions:TestOptions.Regular.WithTuplesFeature());
// (7,29): error CS0029: Cannot implicitly convert type '(long c, long d)' to '(int a, int b)'
// (int a, int b) x1 = ((long c, long d))(e: 1, f:2);
Diagnostic(ErrorCode.ERR_NoImplicitConv,"((long c, long d))(e: 1, f:2)").WithArguments("(long c, long d)","(int a, int b)").WithLocation(8,29),
// (10,33): error CS0029: Cannot implicitly convert type '(int c, int d)' to '(short a, short b)'
Diagnostic(ErrorCode.ERR_NoImplicitConv,"((long c, long d))(e: 1, f:2)").WithArguments("(long c, long d)","(int a, int b)").WithLocation(7,29),
// (9,33): error CS0029: Cannot implicitly convert type '(int c, int d)' to '(short a, short b)'
// (short a, short b) x2 = ((int c, int d))(e: 1, f:2);
Diagnostic(ErrorCode.ERR_NoImplicitConv,"((int c, int d))(e: 1, f:2)").WithArguments("(int c, int d)","(short a, short b)").WithLocation(10,33),
// (13,29): error CS0030: Cannot convert type '(int e, string f)' to '(long c, long d)'
Diagnostic(ErrorCode.ERR_NoImplicitConv,"((int c, int d))(e: 1, f:2)").WithArguments("(int c, int d)","(short a, short b)").WithLocation(9,33),
// (12,29): error CS0030: Cannot convert type '(int e, string f)' to '(long c, long d)'
// (int a, int b) x3 = ((long c, long d))(e: 1, f:"qq");
Diagnostic(ErrorCode.ERR_NoExplicitConv,@"((long c, long d))(e: 1, f:""qq"")").WithArguments("(int e, string f)","(long c, long d)").WithLocation(13,29)
Diagnostic(ErrorCode.ERR_NoExplicitConv,@"((long c, long d))(e: 1, f:""qq"")").WithArguments("(int e, string f)","(long c, long d)").WithLocation(12,29)