Skip to content

Commit 38831f2

Browse files
committed
Fix bug re: methods defined via aliases
1 parent b8724f7 commit 38831f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Type extends @type {
5353
* with the corresponding named type instead.
5454
*/
5555
Method getMethod(string m) {
56-
result.getReceiverType() = this and
56+
result.getReceiverType().getDeepUnaliasedType() = this.getDeepUnaliasedType() and
5757
result.getName() = m
5858
}
5959

0 commit comments

Comments
 (0)