C#: Always use the unbound type declaration location for type location.

This commit is contained in:
Michael Nebel
2025-10-06 16:41:12 +02:00
parent b362b4657f
commit 6149608c03

View File

@@ -30,7 +30,7 @@ class Type extends Member, TypeContainer, @type {
/** Holds if this type is implicitly convertible to `that` type. */
predicate isImplicitlyConvertibleTo(Type that) { implicitConversion(this, that) }
override Location getALocation() { type_location(this, result) }
override Location getALocation() { type_location(this.getUnboundDeclaration(), result) }
override Type getChild(int n) { none() }