Joe
08/17/2020, 5:30 PMvar reached = false
With 1.4, line 30 triggers the following warning, but line 48 does not:
DAOTestBaseTest.kt: (30, 23) Variable 'reached' initializer is redundant
I can fix by replacing with var reached: Boolean
, but would like to understand why the 2 instances are being treated differently first.Nir
08/17/2020, 5:32 PMassertThat
Joe
08/17/2020, 5:34 PMNir
08/17/2020, 5:34 PMuse
will simply always runuse
and assertThat
unconditionally call the passed lambdaassertThat
always executes its lambda.Joe
08/17/2020, 5:38 PMdead write
makes sense as an explanation to me, clearer than redundant initializer at least, thanks!Nir
08/17/2020, 5:40 PM