Skip to content

Commit 00cc119

Browse files
authored
Fix dump token for typespec (#3187)
***NO_CI***
1 parent 4854f6b commit 00cc119

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/CLR/Diagnostics/Info.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,14 @@ void CLR_RT_Assembly::DumpToken(CLR_UINT32 token, const CLR_RT_TypeSpec_Index *g
524524
// back to BuildTypeName for the full concrete name.
525525
//
526526

527+
CLR_UINT32 ownerAsm = assemblyIndex;
528+
if (genericType != nullptr && NANOCLR_INDEX_IS_VALID(*genericType))
529+
{
530+
ownerAsm = genericType->Assembly();
531+
}
532+
527533
CLR_RT_TypeSpec_Index tsIdx;
528-
tsIdx.Set(assemblyIndex, index);
534+
tsIdx.Set(ownerAsm, index);
529535

530536
// bind to get the signature blob
531537
CLR_RT_TypeSpec_Instance tsInst{};

0 commit comments

Comments
 (0)