[bugfix] fix #11588, don't check if SharedTable is initialized

(cherry picked from commit 326e3ad09d)
This commit is contained in:
narimiran
2019-06-26 11:10:40 +02:00
parent e08cf5a947
commit 28708e0b8e
3 changed files with 27 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
discard """
output: '''
'''
"""
import sharedtables
var table: SharedTable[int, int]
init(table)
table[1] = 10
assert table.mget(1) == 10
assert table.mgetOrPut(3, 7) == 7
assert table.mgetOrPut(3, 99) == 7