Skip to content

Commit f73713b

Browse files
committed
Go: Update AliasType to implement getUnderlyingType
1 parent e81a555 commit f73713b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,8 @@ class NamedType extends @namedtype, CompositeType {
10111011
class AliasType extends @typealias, CompositeType {
10121012
/** Gets the aliased type (i.e. that appears on the RHS of the alias definition). */
10131013
Type getRhs() { alias_rhs(this, result) }
1014+
1015+
override Type getUnderlyingType() { result = this.getRhs().getUnderlyingType() }
10141016
}
10151017

10161018
/**

0 commit comments

Comments
 (0)