Jsctypes/api: Difference between revisions

Jump to navigation Jump to search
m
Line 495: Line 495:
*If ''t'' and ''u'' represent the same built-in type, even <code>void</code>, return true.
*If ''t'' and ''u'' represent the same built-in type, even <code>void</code>, return true.
*If they are both pointer types, return <code>SameType(''t''.targetType, ''u''.targetType)</code>.
*If they are both pointer types, return <code>SameType(''t''.targetType, ''u''.targetType)</code>.
*If they are both array types, return <code>SameType(''t''.elementType, ''u''.targetType) &amp;&amp; ''t''.length === ''u''.length</code>.
*If they are both array types, return <code>SameType(''t''.elementType, ''u''.elementType) &amp;&amp; ''t''.length === ''u''.length</code>.
*If they are both struct types, return <code>''t'' === ''u''</code>.
*If they are both struct types, return <code>''t'' === ''u''</code>.
*Otherwise return false.
*Otherwise return false.
638

edits

Navigation menu