Skip to content

Commit a91cdba

Browse files
committed
Add variables to table
1 parent b21bb99 commit a91cdba

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

spec/Section 3 -- Type System.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,18 +1773,18 @@ constructing the list.
17731773

17741774
Following are examples of input coercion with various list types and values:
17751775

1776-
| Expected Type | Provided Value | Coerced Value |
1777-
| ------------- | ---------------- | --------------------------- |
1778-
| `[Int]` | `[1, 2, 3]` | `[1, 2, 3]` |
1779-
| `[Int]` | `[1, "b", true]` | Error: Incorrect item value |
1780-
| `[Int]` | `1` | `[1]` |
1781-
| `[Int]` | `null` | `null` |
1782-
| `[[Int]]` | `[[1], [2, 3]]` | `[[1], [2, 3]]` |
1783-
| `[[Int]]` | `[1, 2, 3]` | `[[1], [2], [3]]` |
1784-
| `[[Int]]` | `[1, null, 3]` | `[[1], null, [3]]` |
1785-
| `[[Int]]` | `[[1], ["b"]]` | Error: Incorrect item value |
1786-
| `[[Int]]` | `1` | `[[1]]` |
1787-
| `[[Int]]` | `null` | `null` |
1776+
| Expected Type | Literal Value | Variable Values | Coerced Value |
1777+
| ------------- | ---------------- | --------------- | --------------------------- |
1778+
| `[Int]` | `[1, 2, 3]` | `{}` | `[1, 2, 3]` |
1779+
| `[Int]` | `[1, "b", true]` | `{}` | Error: Incorrect item value |
1780+
| `[Int]` | `1` | `{}` | `[1]` |
1781+
| `[Int]` | `null` | `{}` | `null` |
1782+
| `[[Int]]` | `[[1], [2, 3]]` | `{}` | `[[1], [2, 3]]` |
1783+
| `[[Int]]` | `[1, 2, 3]` | `{}` | `[[1], [2], [3]]` |
1784+
| `[[Int]]` | `[1, null, 3]` | `{}` | `[[1], null, [3]]` |
1785+
| `[[Int]]` | `[[1], ["b"]]` | `{}` | Error: Incorrect item value |
1786+
| `[[Int]]` | `1` | `{}` | `[[1]]` |
1787+
| `[[Int]]` | `null` | `{}` | `null` |
17881788

17891789
## Non-Null
17901790

0 commit comments

Comments
 (0)