# HG changeset patch # User David Barts # Date 1586742323 25200 # Node ID 3f8409470fdf862e754ce295117277057939cb6c # Parent bb80148e2cb3ed6532f2b0a2690544a0b292c233 Input type to SetOnceImpl cannot be nullable. diff -r bb80148e2cb3 -r 3f8409470fdf src/name/blackcap/clipman/Misc.kt --- a/src/name/blackcap/clipman/Misc.kt Sun Apr 12 17:03:11 2020 -0700 +++ b/src/name/blackcap/clipman/Misc.kt Sun Apr 12 18:45:23 2020 -0700 @@ -26,7 +26,7 @@ * * @param <T> type of the associated value */ -class SetOnceImpl: ReadWriteProperty { +class SetOnceImpl: ReadWriteProperty { private var setOnceValue: T? = null override operator fun getValue(thisRef: Any?, property: KProperty<*>): T { @@ -50,7 +50,7 @@ * Normal way to create a setOnce var: * var something: SomeType by setOnce() */ -fun setOnce(): SetOnceImpl = SetOnceImpl() +fun setOnce(): SetOnceImpl = SetOnceImpl() /** * Run something in the Swing thread, asynchronously.