The Wayback Machine - https://web.archive.org/web/20200908052814/https://github.com/scala-js/scala-js/pull/4181
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract a few tests with Arrays of Null and Nothing as Scala 2.x-only. #4181

Conversation

@sjrd
Copy link
Member

sjrd commented Sep 7, 2020

As of this writing, the tests that were moved can be made to work by actively avoiding the ClassTags, but they might break at any point in the future, because the status of Array[Null] and Array[Nothing] themselves in Scala 3 is up in the air.

It was in `RuntimeTypesTest`, but it really only tests `ClassTag`s,
so it should always have been in `ClassTagTest`. Since
`ClassTag[Null]` is not supported by dotty, this commit moves it to
`ClassTagTestScala2` instead.
@sjrd sjrd requested a review from gzm0 Sep 7, 2020
@gzm0
gzm0 approved these changes Sep 7, 2020
As of this writing, the tests that were moved *can* be made to work
by actively avoiding the `ClassTag`s, but they might break at any
point in the future, because the status of `Array[Null]` and
`Array[Nothing]` themselves in Scala 3 is up in the air.
@sjrd sjrd force-pushed the sjrd:extract-scala2-only-tests-with-arrays-of-null-nothing branch from ccd9ccd to 8f3610e Sep 7, 2020
// Was `val arr = Array.fill[Null](5, 5)(null)` but that crashes on the JVM
val arr = new Array[Array[Null]](5)
Comment on lines +43 to +44

This comment has been minimized.

@sjrd

sjrd Sep 7, 2020

Author Member

@gzm0 I had to adapt this to make testSuiteJVM pass. Previously those tests were in js/ only. It doesn't change the nature of what was being tested.

@gzm0
gzm0 approved these changes Sep 7, 2020
@sjrd sjrd merged commit 1366edb into scala-js:master Sep 8, 2020
3 checks passed
3 checks passed
check
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/jenkins/pr-merge This commit looks good
Details
@sjrd sjrd deleted the sjrd:extract-scala2-only-tests-with-arrays-of-null-nothing branch Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.