Make TypeSafeMap() returns TypeSafeMap.EMPTY

This commit is contained in:
Him188 2021-08-25 13:51:40 +08:00
parent 1ffa9eb957
commit f40659b1c7

View File

@ -121,7 +121,7 @@ public inline fun MutableTypeSafeMap(): MutableTypeSafeMap = MutableTypeSafeMapI
public inline fun MutableTypeSafeMap(map: Map<String, Any?>): MutableTypeSafeMap =
MutableTypeSafeMapImpl().also { it.map.putAll(map) }
public inline fun TypeSafeMap(): TypeSafeMap = MutableTypeSafeMapImpl()
public inline fun TypeSafeMap(): TypeSafeMap = TypeSafeMap.EMPTY
public inline fun TypeSafeMap(map: Map<String, Any?>): TypeSafeMap =
MutableTypeSafeMapImpl().also { it.map.putAll(map) }