Skip to content

Commit 6149608

Browse files
committed
C#: Always use the unbound type declaration location for type location.
1 parent b362b46 commit 6149608

File tree

1 file changed

+1
-1
lines changed
  • csharp/ql/lib/semmle/code/csharp

1 file changed

+1
-1
lines changed

csharp/ql/lib/semmle/code/csharp/Type.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Type extends Member, TypeContainer, @type {
3030
/** Holds if this type is implicitly convertible to `that` type. */
3131
predicate isImplicitlyConvertibleTo(Type that) { implicitConversion(this, that) }
3232

33-
override Location getALocation() { type_location(this, result) }
33+
override Location getALocation() { type_location(this.getUnboundDeclaration(), result) }
3434

3535
override Type getChild(int n) { none() }
3636

0 commit comments

Comments
 (0)