Skip to content

Commit b732eed

Browse files
committed
Fix struct deepUnaliasedType predicate
1 parent 1e3f103 commit b732eed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go/ql/lib/semmle/go/Types.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,9 @@ class SignatureType extends @signaturetype, CompositeType {
11901190
(
11911191
nParams <= 5
11921192
or
1193-
this.hasDeepUnaliasedParameterTypesUpTo(result, nParams - 1) and
1193+
this.hasDeepUnaliasedParameterTypesUpTo(result, nParams - 1)
1194+
) and
1195+
(
11941196
nResults <= 3
11951197
or
11961198
this.hasDeepUnaliasedResultTypesUpTo(result, nResults - 1)

0 commit comments

Comments
 (0)