So, an `inline fun` gives a 'nothing to inline' wa...
# getting-started
j
So, an
inline fun
gives a 'nothing to inline' warning for a function that is just a call to
assert
. Wouldn't it make sense to inline an assert call? My function:
Copy code
inline fun assertIsEventThread() {
    assert(SwingUtilities.isEventDispatchThread()) { "should be on event thread" }
}