You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demonstrate how xsbti.Problem#quickfix could be used
This requires https://github.com/smarter/sbt/tree/quickFix
The following code should emit a Problem containing a quickfix
replacing `f _` by `() => f`:
```
class Foo {
def f: Int = { println("hi"); 1 }
val g = f _
}
```
TODO: This broke -rewrite since I commented out the `patch` call, ideally they
shouldn't be needed since -rewrite should be able to use the information stored
in the `Message`.
// [warn] sbt-bridge/src/dotty/tools/xsbt/DelegatingReporter.java:18:1: dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() in dotty.tools.dotc.reporting.AbstractReporter implements dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() in dotty.tools.dotc.reporting.UniqueMessagePositions
76
89
// [warn] return type requires unchecked conversion from scala.collection.mutable.HashMap to scala.collection.mutable.HashMap<scala.Tuple2<dotty.tools.dotc.util.SourceFile,java.lang.Integer>,dotty.tools.dotc.reporting.Diagnostic>
0 commit comments