olabusayoT commented on code in PR #1431:
URL: https://github.com/apache/daffodil/pull/1431#discussion_r1953331196


##########
daffodil-runtime1/src/main/scala/org/apache/daffodil/runtime1/debugger/InteractiveDebugger.scala:
##########
@@ -1862,7 +1863,7 @@ class InteractiveDebugger(
       }
 
       abstract class InfoProcessorBase extends DebugCommand with 
DebugCommandValidateZeroArgs {
-        val desc = "display the current Daffodil " + name
+        val desc = "display the current Daffodil " + this.name

Review Comment:
   We get the following error wuthout the `this.`
   
   ```
    reference to name is ambiguous;
   [error] it is both defined in the enclosing object Info and inherited in the 
enclosing class InfoProcessorBase as value name (defined in class DebugCommand)
   [error] In Scala 2, symbols inherited from a superclass shadow symbols 
defined in an outer scope.
   [error] Such references are ambiguous in Scala 3. To continue using the 
inherited symbol, write `this.name`.
   [error] Or use `-Wconf:msg=legacy-binding:s` to silence this warning. 
[quickfixable]
   [error]               if (name == "parser") {
   ```



-- 
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]

Reply via email to