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 9467cda commit db2aec1Copy full SHA for db2aec1
tests/pos/i17631.scala
@@ -32,3 +32,9 @@ object Main {
32
(bad1, bad2)
33
}
34
35
+
36
+def `i18388`: Unit =
37
+ def func(pred: [A] => A => Boolean): Unit =
38
+ val _ = pred
39
+ ()
40
+ val _ = func
tests/warn/unused-privates.scala
@@ -295,3 +295,12 @@ package locked:
295
private[locked] def locker(): Unit = () // warn as we cannot distinguish unqualified private at top level
296
package basement:
297
private[locked] def shackle(): Unit = () // no warn as it is not top level at boundary
298
299
+object `i19998 refinement`:
300
+ trait Foo {
301
+ type X[a]
302
+ }
303
+ trait Bar[X[_]] {
304
+ private final type SelfX[a] = X[a] // was false positive
305
+ val foo: Foo { type X[a] = SelfX[a] }
306
0 commit comments