File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
src/compiler/scala/tools/nsc/typechecker
benchmarks/src/scala/collection/parallel/benchmarks/parallel_array Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ trait PatternTypers {
305305 // clearing the type is necessary so that ref will be stabilized; see bug 881
306306 val fun1 = typedPos(fun.pos)(Apply (Select (fun.clearType(), unapplyMethod), unapplyArgTree :: Nil ))
307307
308- def makeTypedUnApply () = {
308+ def makeTypedUnapply () = {
309309 // the union of the expected type and the inferred type of the argument to unapply
310310 val glbType = glb(ensureFullyDefined(pt) :: unapplyArg.tpe_* :: Nil )
311311 val wrapInTypeTest = canRemedy && ! (fun1.symbol.owner isNonBottomSubClass ClassTagClass )
@@ -325,7 +325,7 @@ trait PatternTypers {
325325 if (isBlackbox(unapplyMethod)) duplErrorTree(BlackboxExtractorExpansion (tree))
326326 else duplErrorTree(WrongShapeExtractorExpansion (tree))
327327 } else
328- makeTypedUnApply ()
328+ makeTypedUnapply ()
329329 }
330330
331331 def wrapClassTagUnapply (uncheckedPattern : Tree , classTagExtractor : Tree , pt : Type ): Tree = {
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ trait SequentialOps[T] {
425425 }
426426
427427 def sequentialDiff (sq : Seq [T ], sz : Int ) = {
428- val occmap = occurences (sq)
428+ val occmap = occurrences (sq)
429429 val b = new collection.mutable.ArrayBuffer [T ]
430430
431431 var i = 0
@@ -442,7 +442,7 @@ trait SequentialOps[T] {
442442 }
443443
444444 def sequentialIntersect (sq : Seq [T ], sz : Int ) = {
445- val occmap = occurences (sq)
445+ val occmap = occurrences (sq)
446446 val b = new collection.mutable.ArrayBuffer [T ]
447447
448448 var i = 0
@@ -461,7 +461,7 @@ trait SequentialOps[T] {
461461 res
462462 }
463463
464- private def occurences (sq : Seq [T ]) = {
464+ private def occurrences (sq : Seq [T ]) = {
465465 val occmap = new collection.mutable.HashMap [T , Int ] { override def default (k : T ) = 0 }
466466 for (elem <- sq.iterator) occmap(elem) += 1
467467 occmap
Original file line number Diff line number Diff line change 2929in finally
3030java.lang.Exception
3131----------------------------------------
32- Running nestedFinalies
32+ Running nestedFinallyBlocks
3333in finally 1
3434in finally 2
3535----------------------------------------
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ object Test extends App {
9494 }
9595
9696 // nested finally blocks with return value
97- def nestedFinalies : Int =
97+ def nestedFinallyBlocks : Int =
9898 try {
9999 try {
100100 return 10
@@ -123,5 +123,5 @@ object Test extends App {
123123 test(throwBody, " throwBody" )
124124 test(retFinally, " retFinally" )
125125 test(throwFinally, " throwFinally" )
126- test(nestedFinalies , " nestedFinalies " )
126+ test(nestedFinallyBlocks , " nestedFinallyBlocks " )
127127}
You can’t perform that action at this time.
0 commit comments