Nikky
10/20/2018, 10:30 PMfun add(id: ID)
that i rewrote to operator fun ID.unaryPlus()
replacement works for usecases like this
add(ID(something)) configure { .. }
but not for
add(ID(something))
in the second case it just removes the line when i execute replacewith intent
configure
is a inline function
the deprecation code is
@Deprecated(
"prefer unaryPlus",
ReplaceWith("+ id"),
level = DeprecationLevel.WARNING
)
orangy
Nikky
10/21/2018, 9:59 AM