diesieben07
09/22/2017, 8:46 PMfun <T> castUnsafe(input: Any?) = input as T
// later:
thisMethodHasNonNullParameter(castUnsafe(null))
Will compile and fail at runtime with IllegalArgumentException
thrown from thisMethodHasNonNullParameter
.ilya.gorbunov
09/22/2017, 8:49 PMdiesieben07
09/22/2017, 8:50 PM