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:
parent
4f50dac27c
commit
1eb8dbb42a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue