Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/type_checker/fn_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ impl TypedFnEnv {
}

/// Retrieves type information on a variable, given a name.
/// If the variable is not in scope, return false.
// TODO: return an error no?
/// If the variable is not in scope, return `None`.
pub fn get_type_info(&self, ident: &str) -> Result<Option<&TypeInfo>> {
if let Some((scope, type_info)) = self.vars.get(ident) {
if self.is_forbidden(*scope, type_info.clone()) {
Expand Down
Loading