diff --git a/schala-lang/language/src/reduced_ast.rs b/schala-lang/language/src/reduced_ast.rs index 2192d94..b838f10 100644 --- a/schala-lang/language/src/reduced_ast.rs +++ b/schala-lang/language/src/reduced_ast.rs @@ -185,13 +185,16 @@ impl<'a> Reducer<'a> { //TODO this probably needs to change let FullyQualifiedSymbolName(ref v) = sym_name; - let name = v.last().unwrap().name.clone(); + //let name = v.last().unwrap().name.clone(); let Symbol { local_name, spec, .. } = match self.symbol_table.lookup_by_fqsn(&sym_name) { Some(s) => s, - //TODO investigate why this fails + //TODO this causes several evaluation tests to fail, figure out what's going on here //None => return Expr::ReductionError(format!("Symbol {:?} not found", sym_name)), - None => return Expr::Sym(name) + None => { + let name = qualified_name.components.last().unwrap().clone(); + return Expr::Sym(name) + } }; match spec {