From 025b072a3e3941eee97f160e10c9e16992c85819 Mon Sep 17 00:00:00 2001 From: Razvan Nitu Date: Tue, 20 Aug 2024 10:44:50 +0300 Subject: [PATCH] Update compiler/test/runnable/noreturn2.d Co-authored-by: Cameron Ross --- compiler/test/runnable/noreturn2.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/test/runnable/noreturn2.d b/compiler/test/runnable/noreturn2.d index 16e244d385..ef0627202c 100644 --- a/compiler/test/runnable/noreturn2.d +++ b/compiler/test/runnable/noreturn2.d @@ -218,8 +218,10 @@ void testCast() try auto a = cast(int)foo; catch (Throwable e) + { assert(e.msg == "Accessed expression of type `noreturn`"); return; + } assert(0); }