From 621e316dafc8241b0d806abff376afd24bca9578 Mon Sep 17 00:00:00 2001 From: "monada-bot[bot]" Date: Sun, 7 Apr 2024 11:55:25 +0000 Subject: [PATCH] chore: self mutation (e2e-2of2.diff) Signed-off-by: monada-bot[bot] --- tools/hangar/__snapshots__/invalid.ts.snap | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/hangar/__snapshots__/invalid.ts.snap b/tools/hangar/__snapshots__/invalid.ts.snap index 6cf66d7d09a..a44e6108b80 100644 --- a/tools/hangar/__snapshots__/invalid.ts.snap +++ b/tools/hangar/__snapshots__/invalid.ts.snap @@ -2712,6 +2712,18 @@ exports[`missing_return.test.w 1`] = ` | \\\\-^ A function whose return type is \\"str\\" must return a value. +error: A function whose return type is \\"str\\" must return a value. + --> ../../../examples/tests/invalid/missing_return.test.w:28:32 + | +28 | let returnString3 = (): str => { + | /--------------------------------^ +29 | | let x = (): str => { +30 | | return \\"what?\\"; // This should be ignored and we should produce a missing return error +31 | | }; +32 | | }; + | \\\\-^ A function whose return type is \\"str\\" must return a value. + + Tests 1 failed (1)