There was an experimental #assert()
in the compiler (which is one of the reasons why Swift Testing uses #expect()
instead, by the way) but it's been removed I think. To implement this feature correctly would presumably require @const
.
There was an experimental #assert()
in the compiler (which is one of the reasons why Swift Testing uses #expect()
instead, by the way) but it's been removed I think. To implement this feature correctly would presumably require @const
.