Skip to content

Commit 186706b

Browse files
fix: mark function pointer types as stubs
Function pointer types are synthetic types created during dependency resolution, not types directly loaded from assemblies. Setting isStub=true ensures they are correctly classified as referenced types rather than primary architecture types. Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
1 parent 05f6269 commit 186706b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ArchUnitNET/Loader/TypeFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ FunctionPointerType functionPointerType
432432
Public,
433433
false,
434434
false,
435-
false,
435+
true,
436436
false
437437
);
438438
var returnTypeInstance = GetOrCreateStubTypeInstanceFromTypeReference(

0 commit comments

Comments
 (0)