mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* IC: C codegen is aware of IC * manual: minor change to make VSCode's RST plugin render it properly * IC: minor refactoring * testament: code refactorings * rodutils: removed dead code * IC: always build the compiler with the IC feature * IC: C codegen improvements * IC: implement the undocumented -d:nimMustCache option for testing purposes * IC: added first basic tests * IC: extensive testing of the deserialization feature * testament: refactoring; better IC tests * IC: removes 'nimMustCache' flag; readonly does the same * testament: minor refactoring * update Nimble version * testament: removed dead code and imports; IC: added simple test * IC: progress
40 lines
445 B
Nim
40 lines
445 B
Nim
discard """
|
|
output: "bar"
|
|
disabled: "true"
|
|
"""
|
|
|
|
import tables
|
|
|
|
var tab: Table[string, string]
|
|
|
|
tab["foo"] = "bar"
|
|
echo tab["foo"]
|
|
|
|
#!EDIT!#
|
|
|
|
discard """
|
|
output: "bar 3"
|
|
"""
|
|
|
|
import tables
|
|
|
|
var tab: Table[string, string]
|
|
var tab2: Table[string, int]
|
|
|
|
tab["foo"] = "bar"
|
|
tab2["meh"] = 3
|
|
echo tab["foo"], " ", tab2["meh"]
|
|
|
|
#!EDIT!#
|
|
|
|
discard """
|
|
output: "3"
|
|
"""
|
|
|
|
import tables
|
|
|
|
var tab2: Table[string, int]
|
|
|
|
tab2["meh"] = 3
|
|
echo tab2["meh"]
|