Update compiler/test/runnable/noreturn2.d

Co-authored-by: Cameron Ross <elpenguino@gmail.com>
This commit is contained in:
Razvan Nitu 2024-08-20 10:44:50 +03:00 committed by GitHub
parent f99288f35c
commit 025b072a3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}