Issues with XML subtypes #22069
Labels
Points/6
Equivalent to six days effort
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/SpecDeviation
Description:
Case I
The spec says "A shape belongs to type
xml<T>
if all of its constituent items belong to T. So, for example,xml<xml:Element>
is the type for xml values containing only elements.".But this validation does not seem to happen atm. For example, the following does not fail.
Case II
The spec also says "Note that
xml<xml<T>>
is the same asxml<T>
and thatxml<xml:Text>
is the same asxml:Text
.".So shouldn't the following be allowed?
Currently results in a compilation error.
Affected Versions:
1.2.0
The text was updated successfully, but these errors were encountered: