Skip to content

Commit a991dbd

Browse files
committed
Ensure found type maps always contain the type sought after
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 6b74445 commit a991dbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Generator/Types/TypeMapDatabase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public bool FindTypeMap(Type type, out TypeMap typeMap)
5656
if (typeMaps.ContainsKey(type))
5757
{
5858
typeMap = typeMaps[type];
59+
typeMap.Type = type;
5960
return typeMap.IsEnabled;
6061
}
6162

0 commit comments

Comments
 (0)