Skip to content

Commit

Permalink
Predeclare object and error as import prefixes
Browse files Browse the repository at this point in the history
Like xml. Part of #413.
  • Loading branch information
jclark committed May 3, 2020
1 parent 2baf5ae commit 46fb31a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -7125,9 +7125,10 @@ <h3>Import declaration</h3>
symbol space used by other declarations.
</p>
<p>
A module prefix of <code>xml</code> is predeclared as referring to the
<code>lang.xml</code> lang library module, but this can be overridden by an
import-decl.
A module prefix of <code><var>t</var></code>, where <code><var>t</var></code> is
one of <code>error</code>, <code>object</code> or <code>xml</code>, is
predeclared as referring to the <code>lang.<var>t</var></code> lang library
module, but this can be overridden by an import-decl.
</p>
<p>
It is an error for a module to directly or indirectly import itself. In other
Expand Down

0 comments on commit 46fb31a

Please sign in to comment.