Zac Sweers
07/15/2020, 5:19 PMThe feature “unit conversion” is disabled
private class OnJobDone(
private val jobDone: (Job) -> Unit,
val allDone: () -> Unit
)
private val callbacks = OnJobDone(
jobDone = jobToChannelId andThen trackChannelSynced,
// Fails on the next line
allDone = {
// ...
}
)
louiscad
07/15/2020, 7:13 PMZac Sweers
07/16/2020, 12:21 AMZac Sweers
07/16/2020, 12:21 AMZac Sweers
07/16/2020, 12:54 AMZac Sweers
07/16/2020, 2:10 AMUnitConversionCallChecker
is erroneously being enabled everywhere even if the feature is not explicitly enabled, and now any lambda/function argument that could be subject to it appears to be getting checked by it. Not sure if that’s the right read though.
If I manually enable it via -XXLanguage:+UnitConversion
then it works, but for a feature that I’m not explicitly trying to use in existing source this seems like a bug. It also requires that I add -XXLanguage:+NewInference
, even though thought the new type inference algorithm was enabled by default in 1.4. Did that change between M2 and M3?louiscad
07/16/2020, 7:15 AM