Easiest way to force a crash in Swift

后端 未结 6 918

What is the easiest way to force a crash in Swift?

I would like to use only one line of code (something that I can add quickly).

I don\'t want to use breakp

6条回答
  •  别那么骄傲
    2020-12-24 14:04

    reversed ranges,

    21...3
    

    Thread 1: Fatal error: Can't form Range with upperBound < lowerBound

提交回复
热议问题