We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e15fc commit 5f875e0Copy full SHA for 5f875e0
Src/FastData.Generator/Framework/TypeMap.cs
@@ -11,7 +11,13 @@ public TypeMap(IList<ITypeDef> typeSpecs)
11
for (int i = 0; i < typeSpecs.Count; i++)
12
{
13
ITypeDef spec = typeSpecs[i];
14
- _index[(byte)spec.DataType] = spec;
+ byte idx = (byte)spec.DataType;
15
+
16
+ //Quick check to see if a language have a duplicate definition for a DataType
17
+ if (_index[idx] != null)
18
+ throw new InvalidOperationException($"Duplicate type spec found for '{spec.DataType}'");
19
20
+ _index[idx] = spec;
21
}
22
23
0 commit comments