mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 13:46:13 +08:00
Make TypeSafeMap()
returns TypeSafeMap.EMPTY
This commit is contained in:
parent
1ffa9eb957
commit
f40659b1c7
@ -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) }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user