Navigation

AppArg::type-mismatch

Key: AppArg::type-mismatch

Category: type-mismatch · Severity: error

Source: src/diag/hints.nix:884

the argument does not match the function's domain

Example

Hint::AppArg::type-mismatch means the AppArg position supplies a term whose type does not match the expected type. The example shows the failing form first, then one way to give the checker the missing structure.

# Bad: the argument does not match the function domain.
app (lam "x" nat (x: x)) true_

# Better: pass an argument from the domain.
app (lam "x" nat (x: x)) (natLit 1)

← All diagnostic hints