Skip to content

Commit afc8ec7

Browse files
Test stdlib-bootstrpped UnrolledBuffer null default getter (#18084)
2 parents 13f877b + 08a2e5d commit afc8ec7

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

project/TastyMiMaFilters.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ object TastyMiMaFilters {
5353
ProblemMatcher.make(ProblemKind.MissingParent, "scala.ScalaReflectionException$"),
5454
ProblemMatcher.make(ProblemKind.MissingParent, "scala.UninitializedFieldError$"),
5555

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

5961
// Problem: Missing type arguments with higher-kinded types

stdlib-bootstrapped-tasty-tests/src/Main.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ object HelloWorld:
1717
testScala2ObjectParents()
1818
testScala2CaseClassUnderscoreMembers()
1919
testScalaNumberUnderlying()
20+
scala.collection.mutable.UnrolledBufferTest.test()
2021
}
2122

2223
def testScala2UnapplySignatures() = {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package scala.collection
2+
package mutable
3+
4+
object UnrolledBufferTest:
5+
def test(): Unit =
6+
new UnrolledBuffer.Unrolled[Int](0, Array.empty[Int], null, null)
7+
new UnrolledBuffer.Unrolled[Int](0, Array.empty[Int], null) // using default null argument

0 commit comments

Comments
 (0)