We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b5d74 commit 869ef7aCopy full SHA for 869ef7a
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -533,6 +533,7 @@ object CheckUnused:
533
warnAt(pos)(UnusedSymbol.implicitParams)
534
else if sym.isLocalToBlock then
535
if ctx.settings.WunusedHas.locals
536
+ && !sym.is(InlineProxy)
537
&& !sym.isCanEqual
538
then
539
warnAt(pos)(UnusedSymbol.localDefs)
tests/warn/i17753.scala
@@ -0,0 +1,10 @@
1
+//> using options -Wunused:all
2
+
3
+class PartiallyApplied[A] {
4
+ transparent inline def func[B](): Nothing = ???
5
+}
6
7
+def call[A] = new PartiallyApplied[A]
8
9
+def good = call[Int].func[String]() // no warn inline proxy
10
+def bad = { call[Int].func[String]() } // no warn inline proxy
0 commit comments