fix #2666
This commit is contained in:
parent
1d09aa7a15
commit
653b7dfaae
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
|||
public const string Major = "3";
|
||||
public const string Minor = "8";
|
||||
public const string Build = "3";
|
||||
public const string Revision = "3114";
|
||||
public const string Revision = "3115";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%COREVERSION%=3
|
||||
%REVISION%=3114
|
||||
%MINOR%=8
|
||||
%REVISION%=3115
|
||||
%COREVERSION%=3
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.8.3.3114
|
||||
3.8.3.3115
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.8.3.3114'
|
||||
!define VERSION '3.8.3.3115'
|
||||
|
|
|
|||
15
TestSuite/ValueTupleUnpack.pas
Normal file
15
TestSuite/ValueTupleUnpack.pas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
##
|
||||
|
||||
function f1 := (1,2);
|
||||
function f2 := System.ValueTuple.Create(1,2);
|
||||
|
||||
// OK
|
||||
var (a1,b1) := f1;
|
||||
// OK
|
||||
var (a2,b2) := f2;
|
||||
|
||||
// OK
|
||||
(a1,b1) := f1;
|
||||
(a2,b2) := f2;
|
||||
Assert((a1,b1)=(1,2));
|
||||
Assert((a2,b2)=(1,2));
|
||||
|
|
@ -22,7 +22,7 @@ namespace PascalABCCompiler.TreeConverter
|
|||
|
||||
var IsTuple = false;
|
||||
var IsSequence = false;
|
||||
if (t.FullName.StartsWith("System.Tuple"))
|
||||
if (t.FullName.StartsWith("System.Tuple") || t.FullName.StartsWith("System.ValueTuple"))
|
||||
IsTuple = true;
|
||||
if (!IsTuple)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue