638
edits
m (→Conversions: typo) |
|||
| 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''. | *If they are both array types, return <code>SameType(''t''.elementType, ''u''.elementType) && ''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. | ||
edits