> Javaのassertion機能は 言語機能レベルで実装され、 以下のような専用の assert 文が用意されています。
> 一方、Kotlinの assert() 関数は、以下のように実装された ただの関数 です。

Java と Kotlin で assertion の挙動が違った話 - ドワンゴ教育サービス開発者ブログ : 👀
---
blog.nnn.dev/entry/2025/07/15/

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.sublimer.me/users/sublimer/statuses/114857092333224694 on your instance and quote it. (Note that quoting is not supported in Mastodon.)