| 1 |
/+ TEST_OUTPUT: |
| 2 |
--- |
| 3 |
fail_compilation/throwexp.d(11): Error: to be thrown `ret()` must be non-null |
| 4 |
fail_compilation/throwexp.d(12): Error: to be thrown `null` must be non-null |
| 5 |
--- |
| 6 |
+/ |
| 7 |
auto ret() |
| 8 |
{ |
| 9 |
return Exception.init; |
| 10 |
} |
| 11 |
enum y = throw ret(); |
| 12 |
enum x = throw Exception.init; |