Skip to content

Commit 81896e6

Browse files
authored
[scala3] Fix Scala3 difference in Probe API (#4591)
The Probe.apply API is supposed to take a second argument of type `Layer`. However, this was incorrectly taking an argument of type `Option[Layer]`. Revert to the former. Signed-off-by: Schuyler Eldridge <[email protected]>
1 parent e45609e commit 81896e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala-3/chisel3/probe/Probe.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ object Probe extends ProbeBase {
1212
def apply[T <: Data](source: => T)(using sourceInfo: SourceInfo): T =
1313
super.apply(source, false, None)
1414

15-
def apply[T <: Data](source: => T, color: Option[layer.Layer])(using sourceInfo: SourceInfo): T =
16-
super.apply(source, false, color)
15+
def apply[T <: Data](source: => T, color: layer.Layer)(using sourceInfo: SourceInfo): T =
16+
super.apply(source, false, Some(color))
1717
}
1818

1919
object RWProbe extends ProbeBase with SourceInfoDoc {

0 commit comments

Comments
 (0)