12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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"]
|