# Problem compiling program using tuple under .NET Framework 4.8

**URL:** https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034
**Category:** Oxygene
**Created:** [May 19, 2020, 8:39pm UTC](https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034 "2020-05-19T20:39:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Glenn\_Laderer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@Glenn\_Laderer](https://talk.remobjects.com/u/Glenn_Laderer)
#### Post date: [May 19, 2020, 8:39pm UTC](https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034/1 "2020-05-19T20:39:57Z")

</div>

type

```
CascadeActions = public flags(CascadingNone = 0, CascadingDeletes, CascadingUpdates);
FKDirections = public flags(Unknown = 0, Parent2Child, Child2Parent);
FKSource = public flags(Database, DataAnnotations, UserSpecified);
FKTuple = tuple of (Parent: SQLExtProperty, Child: SQLExtProperty, Attr: ForeignKeyAttribute, Source: FKSource, Action: CascadeActions, Direction: FKDirections);

```

var CheckFK: FKTuple;  
var ForeignKey: FKTuple;

ForeignKey := (CheckFK.Parent, CheckFK.Child, CheckFK.Attr, CheckFK.Source or FKSource.DataAnnotations, CheckFK.Action, CheckFK.Direction);

I get the following error on the assignment of ForeignKey: (E64) Type mismatch, cannot find operator to evaluate “T4” or “FKSource”.

When I compile under .NET Framework 4.62 this compiles.  
(I have also tried 4.7, 4.71, and 4.72 with no success)

Any ideas???

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [May 19, 2020, 9:46pm UTC](https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034/2 "2020-05-19T21:46:12Z")

</div>

What version of the compiler are you using?

---

<div class="post-metadata">

### Author: ![Glenn\_Laderer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@Glenn\_Laderer](https://talk.remobjects.com/u/Glenn_Laderer)
#### Post date: [May 20, 2020, 2:09am UTC](https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034/4 "2020-05-20T02:09:08Z")

</div>

I am using 10.0.0.2515. I Have had this issue for many versions now as another program that uses the same logic, had to be reduced to 4.62 to allow it to compile. This started when I tried to go up to 4.8.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [May 20, 2020, 4:40am UTC](https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034/5 "2020-05-20T04:40:59Z")

</div>

Thanks, logged as [bugs://84327](https://www.remobjects.com/portal/bugs/?id=84327)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [May 20, 2020, 6:04am UTC](https://talk.remobjects.com/t/problem-compiling-program-using-tuple-under-net-framework-4-8/22034/6 "2020-05-20T06:04:18Z")

</div>

[bugs://84327](https://www.remobjects.com/portal/bugs/?id=84327) got closed with status fixed.
