mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Add Unreachable
This commit is contained in:
parent
0a286061d0
commit
ff0a3d43f5
@ -0,0 +1,7 @@
|
||||
package net.mamoe.mirai.utils
|
||||
|
||||
/**
|
||||
* 表示这里是不可到达的位置.
|
||||
*/
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
internal inline fun assertUnreachable(): Nothing = error("This clause should be reached")
|
Loading…
Reference in New Issue
Block a user