Karlo Lozovina
04/21/2021, 9:58 PMcopy()
function of data classes Intellij highlights the code as a warning (with error of "Unused result of data class copy").
is there a way to get warning activated for my own functions, when I don't use the result value?nanodeath
04/21/2021, 10:01 PMIan Lake
04/21/2021, 10:03 PMKarlo Lozovina
04/21/2021, 10:10 PMRob Elliot
04/21/2021, 10:14 PMpure
keyword (or @Pure
if it has to be an annotation)? Less verbose, and by definition there’s no point calling a pure function unless you use the result.Nir
04/21/2021, 10:19 PMNir
04/21/2021, 10:19 PM