From 7a16185edcacdb6aae932c691d4ace6b0184b536 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sat, 24 Sep 2022 16:02:15 -0400 Subject: [PATCH] Fix util-collection test --- util-collection/src/main/scala/sbt/internal/util/Settings.scala | 2 +- util-collection/src/test/scala/SettingsExample.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util-collection/src/main/scala/sbt/internal/util/Settings.scala b/util-collection/src/main/scala/sbt/internal/util/Settings.scala index fdc627571..7770d3be1 100644 --- a/util-collection/src/main/scala/sbt/internal/util/Settings.scala +++ b/util-collection/src/main/scala/sbt/internal/util/Settings.scala @@ -992,7 +992,7 @@ trait Init[ScopeType]: final class Undefined private[sbt] (val defining: Setting[_], val referencedKey: ScopedKey[_]) def Undefined(defining: Setting[_], referencedKey: ScopedKey[_]): Undefined = - Undefined(defining, referencedKey) + new Undefined(defining, referencedKey) final class RuntimeUndefined(val undefined: Seq[Undefined]) extends RuntimeException("References to undefined settings at runtime."): diff --git a/util-collection/src/test/scala/SettingsExample.scala b/util-collection/src/test/scala/SettingsExample.scala index 813d1492b..9876fa7a0 100644 --- a/util-collection/src/test/scala/SettingsExample.scala +++ b/util-collection/src/test/scala/SettingsExample.scala @@ -64,7 +64,7 @@ case class SettingsUsage(val settingsExample: SettingsExample) { // This can be split into multiple steps to access intermediate results if desired. // The 'inspect' command operates on the output of 'compile', for example. val applied: Settings[Scope] = - makeWithCompiledMap(mySettings)(delegates, scopeLocal, showFullKey)._2 + makeWithCompiledMap(mySettings)(using delegates, scopeLocal, showFullKey)._2 // Show results. /* for(i <- 0 to 5; k <- Seq(a, b)) {