---
title: "SD0011: matchExpr case type does not match the default"
description: "SD0011, an error code of the TypeShade compiler. matchExpr case type does not match the default"
url: https://typeshade.dev/reference/errors/sd0011/
language: en
---

# `SD0011`

Core code

matchExpr case type does not match the default

No `"use typeshade"` program on this site raises this code, so the page has no example. The [`fn()`](https://typeshade.dev/api/fn/) builder builds the IR directly and reaches the check at the lines under Source.

The registry text and every compiler message on these pages are the compiler's own English.

## How to fix it

The registry's hint: every case value and the default must share one type

## See also

- [Types](https://typeshade.dev/guide/language/types/)
- [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

Where the compiler raises this code at commit af54ddad5, one line per file:

- [`src/core/ir/node.ts:2051`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2051)
