Merge pull request #19882 from owen-mc/go/avoid-deprecated-class

Go: Avoid using deprecated class
This commit is contained in:
Jami
2025-06-25 21:16:08 -04:00
committed by GitHub

View File

@@ -1044,7 +1044,9 @@ class DefinedType extends @definedtype, CompositeType {
* Note that this is only defined for types declared in the project being
* analyzed. It will not be defined for types declared in external packages.
*/
Type getBaseType() { result = this.getEntity().(DeclaredType).getSpec().getTypeExpr().getType() }
Type getBaseType() {
result = this.getEntity().(DeclaredTypeEntity).getSpec().getTypeExpr().getType()
}
override Method getMethod(string m) {
result = CompositeType.super.getMethod(m)