Skip to content

Commit

Permalink
add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Jun 1, 2024
1 parent ffd589f commit b01cbe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/red_knot/src/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ fn infer_expr_type(db: &dyn SemanticDb, file_id: FileId, expr: &ast::Expr) -> Qu
ast::Expr::Name(name) => {
// TODO look up in the correct scope, don't assume global
if let Some(symbol_id) = symbols.root_symbol_id_by_name(&name.id) {
// TODO should use only reachable definitions, not public type
infer_symbol_public_type(db, GlobalSymbolId { file_id, symbol_id })
} else {
Ok(Type::Unknown)
Expand Down

0 comments on commit b01cbe3

Please sign in to comment.