OxL Справочник OxL
РусскийEnglish

error unresolved-name

error Стандарт: [§2.2]

Имя не определено.

What it means#

The name is not declared in the current scope, in the enclosing module, in an import, or in the prelude std.core (§2.2). Declarations inside a module may appear in any order (§2.1), so the cause is usually a typo, a missing use, or a name that is private to another module.

Example#

oxl✓ проверяется в CI
fn main() {
  let total = 10
  print(totl)      // <- unresolved-name
}
error
unresolved-name

How to fix#

oxl✓ проверяется в CI
fn main() {
  let total = 10
  print(total)
}

Correct the spelling, or import the name with use. If it exists but is hidden, see visibility.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства