You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR (1) Failed to find type: A2#2
at crates/stc_ts_file_analyzer/src/analyzer/scope/mod.rs:2261
in Expander::expand_ref
in Expander::expand_type
in Expander::expand_type
in Expander::expand_ref
in Expander::expand_type
in expand
in normalize with ty: A;
in normalize with ty: A;
in Stmt with line_col: "(2017:1-2017:13)"
but for a non-circular reference stc will find the type just fine
typeA=A2;typeA2=number;declarevarx: A;x=""// error cant assign string to type number
My guess is that having a self-referencing type breaks how type aliases are hoisted (which I presume they are hoisted), but i haven't been able to confirm.
The text was updated successfully, but these errors were encountered:
Given this input
stc will print
Log
but for a non-circular reference stc will find the type just fine
My guess is that having a self-referencing type breaks how type aliases are hoisted (which I presume they are hoisted), but i haven't been able to confirm.
The text was updated successfully, but these errors were encountered: