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?
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?