summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-04 20:18:41 +0000
committerPaul Phillips <paulp@improving.org>2010-03-04 20:18:41 +0000
commitcb39da4caff8ff3c2f085d8913507cb205ae7f7b (patch)
treefbc02dc1d737fcd82eb4651bd370b2b8b43229ab /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentf9c2792695a80e6a20414bc2008bc33bcb9d8cc9 (diff)
downloadscala-cb39da4caff8ff3c2f085d8913507cb205ae7f7b.tar.gz
scala-cb39da4caff8ff3c2f085d8913507cb205ae7f7b.tar.bz2
scala-cb39da4caff8ff3c2f085d8913507cb205ae7f7b.zip
Renamed the linkedFooOfBar methods in Symbol to...
Renamed the linkedFooOfBar methods in Symbol to be internally consistent and in line with modern nomenclature. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 1554566bac..b0afda02f1 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1326,7 +1326,7 @@ trait Typers { self: Analyzer =>
// attributes(mdef)
// initialize all constructors of the linked class: the type completer (Namer.methodSig)
// might add default getters to this object. example: "object T; class T(x: Int = 1)"
- val linkedClass = mdef.symbol.linkedClassOfModule
+ val linkedClass = mdef.symbol.companionClass
if (linkedClass != NoSymbol)
for (c <- linkedClass.info.decl(nme.CONSTRUCTOR).alternatives)
c.initialize