snowe
07/10/2018, 3:53 PMAndreas Sinz
07/10/2018, 4:14 PM*
less safe in your example?snowe
07/10/2018, 4:15 PMAndreas Sinz
07/10/2018, 4:26 PM*
just says I don't care what Generic Type the class has, I won't use it anyway, so if you actually not gonna use it, its safe to use *
IMOsnowe
07/10/2018, 4:35 PM*
, but that means there is no way to grab the type of this
and use it as the generic type? that kinda sucks. 😕karelpeeters
07/10/2018, 4:42 PMAndreas Sinz
07/10/2018, 4:44 PMthis
, yeskarelpeeters
07/10/2018, 4:45 PMreified
and isn't used?Andreas Sinz
07/10/2018, 4:46 PMkarelpeeters
07/10/2018, 4:46 PMsnowe
07/10/2018, 5:02 PMsnowe
07/10/2018, 5:02 PMAnuar Neto
07/10/2018, 6:10 PMfun <T : Exception> T.expect(res: ResultValidator<A???>): ResultValidator<A???>
And then call like: AccessDeniedException.expect(resultValidatorOfTypeBlah)
snowe
07/10/2018, 7:37 PMexpectException
is called on a chain of other methods.