File tree Expand file tree Collapse file tree
ndc_lib/src/interpreter/semantic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -389,13 +389,19 @@ impl Analyser {
389389 Expression :: Int64Literal ( _) | Expression :: BigIntLiteral ( _) => StaticType :: Int ,
390390 Expression :: Float64Literal ( _) => StaticType :: Float ,
391391 Expression :: ComplexLiteral ( _) => StaticType :: Complex ,
392- Expression :: Identifier { resolved, name } => self
392+ Expression :: Identifier { resolved, name } => {
393+ println ! (
394+ "resolving name: {name}, {resolved:?}\n \n {}\n \n {:?}" ,
395+ self . scope_tree. current_scope_idx, self . scope_tree. scopes
396+ ) ;
397+ self
393398 . scope_tree
394399 . get_type ( resolved. unwrap_or_else ( || {
395400 panic ! (
396401 "previously mentioned identifier {name} was not resolved during type resolution"
397402 )
398- } ) ) ,
403+ } ) )
404+ }
399405 Expression :: Statement ( _)
400406 | Expression :: While { .. }
401407 | Expression :: Break
You can’t perform that action at this time.
0 commit comments