E4037# 编译器诊断名称:pkg_not_imported。 引用的包未导入。 此示例引用了 @boolean,但没有导入使用该别名的包。 错误示例# fn main { println(@boolean.Bool::to_int(true)) } 建议# 检查包名,并在 moon.pkg 中导入所需的包。在此示例中,Bool 是内置类型,因此直接调用其方法即可,无需包别名。 fn main { println(true.to_int()) }