replaced deprecated method call. review by rytz.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23122 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
odersky 2010-09-28 15:28:46 +00:00
parent 4f50dac27c
commit 1eb8dbb42a
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ trait NamesDefaults { self: Analyzer =>
* the default getter.
*/
def defaultGetter(param: Symbol, context: Context): Symbol = {
val i = param.owner.paramss.flatten.findIndexOf(p => p.name == param.name) + 1
val i = param.owner.paramss.flatten.indexWhere(p => p.name == param.name) + 1
if (i > 0) {
if (param.owner.isConstructor) {
val defGetterName = "init$default$"+ i