Skip to content

Commit

Permalink
Empty table ctor with no contextually expected type
Browse files Browse the repository at this point in the history
Disallow. Fixes #502.
  • Loading branch information
jclark committed Jun 18, 2020
1 parent d9ac33c commit 65074f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -4075,7 +4075,8 @@ <h4>Table constructor</h4>
expected type, then the member type of the inherent type is derived from the the
static type of the expressions for the members: the member type will be the
smallest record type that is a supertype of the static types of all the
expressions in the expr-list.
expressions in the row-list. It is an error if there is no contextually expected
type and the row-list is empty.
</p>
<p>
The key sequence of the inherent type comes from the key-specifier of applicable
Expand Down

0 comments on commit 65074f9

Please sign in to comment.