Skip to main content

static_error

Function static_error 

Source
pub fn static_error(
    c: &ConstDecl,
    consts: &HashMap<String, ConstDecl>,
    types: &HashMap<String, Arc<TypeDecl>>,
) -> Option<CompileError>
Expand description

The first part of init outside the closed set of static initialisers (decision A of #2617, after ADR 0004), as bynk.resolve.bad_const_initialiser on that part. consts are the constants in scope (a reference to one is static); types let a variant constructor be told from a function call.