ageery
02/29/2020, 1:21 PMclass BadTest(val name: String? = null)
val badTestCreator: () -> BadTest = ::BadTest
But that this does work:
class GoodTest(val name: String? = null) {
constructor(): this(name = null)
}
val goodTestCreator: () -> GoodTest = ::GoodTest
Shouldn't there be a no-arg constructor for BadTest
that would satisfy the () -> BadTest
type?Zach Klippenstein (he/him) [MOD]
02/29/2020, 9:09 PM