Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7191

What's the easiest way to make swift crash?

$
0
0

I would like to make swift crash, to test some crash handling functionality of my app.

In C++ I usually dereference a NULL pointer to do that, like so:

int *i = 0;
*i = 42;

What the easiest way to generate a crash in swift?


Viewing all articles
Browse latest Browse all 7191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>