olabusayoT commented on code in PR #1433:
URL: https://github.com/apache/daffodil/pull/1433#discussion_r1956606339
##########
daffodil-runtime1/src/main/scala/org/apache/daffodil/runtime1/debugger/InteractiveDebugger.scala:
##########
@@ -1663,9 +1663,9 @@ class InteractiveDebugger(
val desc = "display differences since the previous pause in the
debugger"
val longDesc = desc
- lazy val infoDiffables = Info.subcommands.collect { case diffable:
InfoDiffable =>
- diffable
- }
+ lazy val infoDiffables = Info.subcommands
+ .filter(_.isInstanceOf[InfoDiffable])
+ .map(_.asInstanceOf[InfoDiffable])
Review Comment:
So you can use collect, but because InfoDiffable is an inner trait, it
doesn't know the type and causes this error:
The outer reference in this type test cannot be checked at run time.
[error] lazy val infoDiffables = Info.subcommands.collect { case
diffable: InfoDiffable =>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]