# typecheck the panic function · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a05e224150a5a4bcad5ab1b399b43db8a0e28104)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a05e224150a5a4bcad5ab1b399b43db8a0e28104

Requested commit: a05e224150a5a4bcad5ab1b399b43db8a0e28104

Commit: a05e224150a5a4bcad5ab1b399b43db8a0e28104

Tree: db8352ab2ca029b95050c78364adc4ac0deb1240

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
typecheck the panic function

this adds the prototype of panic to @import("builtin")
and then uses it to do an implicit cast of the panic
function to this prototype, rather than redoing all the
implicit cast logic.

closes #1894
closes #1895

```

## Parents

- [7293e012d7956b892380517e914108ffadc6941b](https://git.cafe/gitcafe/zig/commit/7293e012d7956b892380517e914108ffadc6941b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a05e224150a5a4bcad5ab1b399b43db8a0e28104?format=markdown)
