This repository was archived by the owner on Sep 1, 2020. It is now read-only.
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 {
305
305
// clearing the type is necessary so that ref will be stabilized; see bug 881
306
306
val fun1 = typedPos(fun.pos)(Apply (Select (fun.clearType(), unapplyMethod), unapplyArgTree :: Nil ))
307
307
308
- def makeTypedUnApply () = {
308
+ def makeTypedUnapply () = {
309
309
// the union of the expected type and the inferred type of the argument to unapply
310
310
val glbType = glb(ensureFullyDefined(pt) :: unapplyArg.tpe_* :: Nil )
311
311
val wrapInTypeTest = canRemedy && ! (fun1.symbol.owner isNonBottomSubClass ClassTagClass )
@@ -325,7 +325,7 @@ trait PatternTypers {
325
325
if (isBlackbox(unapplyMethod)) duplErrorTree(BlackboxExtractorExpansion (tree))
326
326
else duplErrorTree(WrongShapeExtractorExpansion (tree))
327
327
} else
328
- makeTypedUnApply ()
328
+ makeTypedUnapply ()
329
329
}
330
330
331
331
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] {
425
425
}
426
426
427
427
def sequentialDiff (sq : Seq [T ], sz : Int ) = {
428
- val occmap = occurences (sq)
428
+ val occmap = occurrences (sq)
429
429
val b = new collection.mutable.ArrayBuffer [T ]
430
430
431
431
var i = 0
@@ -442,7 +442,7 @@ trait SequentialOps[T] {
442
442
}
443
443
444
444
def sequentialIntersect (sq : Seq [T ], sz : Int ) = {
445
- val occmap = occurences (sq)
445
+ val occmap = occurrences (sq)
446
446
val b = new collection.mutable.ArrayBuffer [T ]
447
447
448
448
var i = 0
@@ -461,7 +461,7 @@ trait SequentialOps[T] {
461
461
res
462
462
}
463
463
464
- private def occurences (sq : Seq [T ]) = {
464
+ private def occurrences (sq : Seq [T ]) = {
465
465
val occmap = new collection.mutable.HashMap [T , Int ] { override def default (k : T ) = 0 }
466
466
for (elem <- sq.iterator) occmap(elem) += 1
467
467
occmap
Original file line number Diff line number Diff line change 29
29
in finally
30
30
java.lang.Exception
31
31
----------------------------------------
32
- Running nestedFinalies
32
+ Running nestedFinallyBlocks
33
33
in finally 1
34
34
in finally 2
35
35
----------------------------------------
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ object Test extends App {
94
94
}
95
95
96
96
// nested finally blocks with return value
97
- def nestedFinalies : Int =
97
+ def nestedFinallyBlocks : Int =
98
98
try {
99
99
try {
100
100
return 10
@@ -123,5 +123,5 @@ object Test extends App {
123
123
test(throwBody, " throwBody" )
124
124
test(retFinally, " retFinally" )
125
125
test(throwFinally, " throwFinally" )
126
- test(nestedFinalies , " nestedFinalies " )
126
+ test(nestedFinallyBlocks , " nestedFinallyBlocks " )
127
127
}
You can’t perform that action at this time.
0 commit comments