Skip to content

Test stdlib-bootstrpped UnrolledBuffer null default getter #18084

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion project/TastyMiMaFilters.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ object TastyMiMaFilters {
ProblemMatcher.make(ProblemKind.MissingParent, "scala.ScalaReflectionException$"),
ProblemMatcher.make(ProblemKind.MissingParent, "scala.UninitializedFieldError$"),

// Problem: ConstantType for `null` versus `scala.Null`
// Probably OK: ConstantType for `null` versus `scala.Null`
// Calls to the default getter seem to link correctly.
// Tested in stdlib-bootstrapped/test/scala/collection/UnrolledBufferTest.scala
ProblemMatcher.make(ProblemKind.IncompatibleTypeChange, "scala.collection.mutable.UnrolledBuffer.Unrolled.<init>$default$4"),

// Problem: Missing type arguments with higher-kinded types
Expand Down
1 change: 1 addition & 0 deletions stdlib-bootstrapped-tasty-tests/src/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ object HelloWorld:
testScala2ObjectParents()
testScala2CaseClassUnderscoreMembers()
testScalaNumberUnderlying()
scala.collection.mutable.UnrolledBufferTest.test()
}

def testScala2UnapplySignatures() = {
Expand Down
7 changes: 7 additions & 0 deletions stdlib-bootstrapped-tasty-tests/src/UnrolledBufferTest.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package scala.collection
package mutable

object UnrolledBufferTest:
def test(): Unit =
new UnrolledBuffer.Unrolled[Int](0, Array.empty[Int], null, null)
new UnrolledBuffer.Unrolled[Int](0, Array.empty[Int], null) // using default null argument