BadImageFormatException on named tuples

Hello,

trying to run attached EUnit tests, the system raises BadImageFormatException on some of them, e.g:

type
MyIntegerTuple = tuple of (First: Integer, Second: Integer);

method Test5_Failed;
begin
  var lTuple: MyIntegerTuple := (1,2);

  Check.AreEqual(1,lTuple.First);
  Check.AreEqual(2,lTuple.Second);
end;

I’m using .Net core 3.1.1.

Could you help me, please?

Thank you very much,

Giovanni

TupleTest.zip (30.6 KB)

Oddly, this fails to compiler for me:

    method EchoMyIntegerTuple(aTuple: MyIntegerTuple): MyIntegerTuple;
    begin
      var (lFirst, lSecond) := aTuple;

      result := (lFirst,lSecond); // E486 Parameter 1 is "T1", should be "Int32", in call to constructor tuple of (Int32, Int32)(item1: Int32; item2: Int32)
                                  // E486 Parameter 2 is "T2", should be "Int32", in call to constructor tuple of (Int32, Int32)(item1: Int32; item2: Int32)
    end;

Thanks, logged as bugs://83905

bugs://83905 got closed with status fixed.