Skip to content

Typechecker uses unwrap() to handle definitions #261

@statusfailed

Description

@statusfailed

See [https://github.com/hellas-ai/catgrad/blob/master/catgrad/src/typecheck/interpreter.rs#L100]:

        let lang::TypedTerm { term, .. } = self.environment.definitions.get(path).unwrap();

This should be a Result::Err, not a panic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions