Skip to content

Commit 962562a

Browse files
authored
Merge pull request scala/scala#10942 from lrytz/lint-structural
Lint inferred structural types
2 parents ba2055e + 528cd27 commit 962562a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/src/scala/collection/Seq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ trait SeqOps[+A, +CC[_], +C] extends Any
878878
*
879879
* @param that the sequence of elements to remove
880880
* @return a new $coll which contains all elements of this $coll
881-
* except some of occurrences of elements that also appear in `that`.
881+
* except some of the occurrences of elements that also appear in `that`.
882882
* If an element value `x` appears
883883
* ''n'' times in `that`, then the first ''n'' occurrences of `x` will not form
884884
* part of the result, but any following occurrences will.

library/src/scala/runtime/ModuleSerializationProxy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import java.security.PrivilegedExceptionAction
1818
import scala.annotation.nowarn
1919

2020
private[runtime] object ModuleSerializationProxy {
21-
private val instances = new ClassValueCompat[Object] {
21+
private val instances: ClassValueCompat[Object] = new ClassValueCompat[Object] {
2222
@nowarn("cat=deprecation") // AccessController is deprecated on JDK 17
2323
def getModule(cls: Class[_]): Object =
2424
java.security.AccessController.doPrivileged(

0 commit comments

Comments
 (0)