Expand toErrMsg to other types (#20896)

This commit is contained in:
Dennis 2025-02-18 23:39:32 +01:00 committed by GitHub
parent edd9eb5a2f
commit e082ce247a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 8 deletions

View file

@ -2,7 +2,7 @@
TEST_OUTPUT:
---
fail_compilation/fail11375.d(18): Error: constructor `fail11375.D!().D.this` is not `nothrow`
which calls `this() { return this; }`
which calls `this`
fail_compilation/fail11375.d(16): Error: function `D main` may throw but is marked as `nothrow`
---
*/