Skip to content

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Nov 2, 2024

And clarify that any is not a universal top type. It is only the supertype of all values that can be passed to JavaScript.


Extracted from #5061 to isolate the functional change in a separate PR with a better title.

And clarify that `any` is not a universal top type. It is only the
supertype of all values that can be passed to JavaScript.
@sjrd sjrd merged commit f3e2ae7 into scala-js:main Nov 2, 2024
3 checks passed
@sjrd sjrd deleted the record-type-not-subtype-of-any branch November 2, 2024 17:43
gzm0 added a commit to gzm0/scala-js that referenced this pull request Nov 12, 2024
Follow-up to scala-js#5065 (8998caf).

Most notably:
- Records are expressions
- Distinguish which places require `any` vs just an expression.
gzm0 added a commit to gzm0/scala-js that referenced this pull request Nov 12, 2024
Follow-up to scala-js#5065 (8998caf).

Most notably:
- Records are expressions
- Distinguish which places require `any` vs just an expression.
gzm0 added a commit to gzm0/scala-js that referenced this pull request Nov 12, 2024
Follow-up to scala-js#5065 (8998caf).

Most notably:
- Records are expressions
- Distinguish which places require `any` vs just an expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants