From 2cf9cd977882931fbdbf56770a1ab1476aef2ee6 Mon Sep 17 00:00:00 2001 From: Petrov Igor Date: Wed, 13 Jul 2022 14:28:51 +0300 Subject: [PATCH] [MM] Suppress analyzer report Change-Id: I2d2a774caab4b61ac28bfba716c73374c02f29d8 Signed-off-by: Petrov Igor --- ir/ts/tsInterfaceDeclaration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/ts/tsInterfaceDeclaration.cpp b/ir/ts/tsInterfaceDeclaration.cpp index 6046a09be..4974d7282 100644 --- a/ir/ts/tsInterfaceDeclaration.cpp +++ b/ir/ts/tsInterfaceDeclaration.cpp @@ -141,7 +141,8 @@ checker::Type *TSInterfaceDeclaration::InferType(checker::Checker *checker, bind binder::Variable *extendsVar = extends->Expr()->AsIdentifier()->Variable(); if (!extendsVar) { - checker->ThrowTypeError({"Cannot find name ", extendsVar->Name()}, extends->Start()); + checker->ThrowTypeError({"Cannot find name ", extends->Expr()->AsIdentifier()->Name()}, + extends->Start()); } if (!extendsVar->HasFlag(binder::VariableFlags::INTERFACE)) { -- Gitee