diff --git a/ets2panda/compiler/core/ETSCompiler.cpp b/ets2panda/compiler/core/ETSCompiler.cpp index fd2476ce9496e76741c94c109991d3215a2d3eec..3d0c2e556b8cf4ab514a282b8cc7e7e76d8eaa02 100644 --- a/ets2panda/compiler/core/ETSCompiler.cpp +++ b/ets2panda/compiler/core/ETSCompiler.cpp @@ -60,7 +60,7 @@ void ETSCompiler::Compile([[maybe_unused]] const ir::ClassDefinition *node) cons void ETSCompiler::Compile(const ir::ClassProperty *st) const { ETSGen *etsg = GetETSGen(); - if (st->Value() == nullptr || (st->IsStatic() && st->TsType()->HasTypeFlag(checker::TypeFlag::CONSTANT))) { + if (st->Value() == nullptr) { return; }