(animal: Animal)
| 120 | |
| 121 | // eslint-disable-next-line |
| 122 | function speak(animal: Animal): void { |
| 123 | if (animal.type === "bird") { |
| 124 | console.log("chirp"); |
| 125 | return; |
| 126 | } |
| 127 | // This line must cause the containing function to fail |
| 128 | // compilation if uncommented |
| 129 | // f.assertExhaustive(animal); |
| 130 | } |
| 131 | }); |
| 132 | |
| 133 | describe("partition", () => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…