summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2010-09-28 20:20:21 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2010-09-28 20:20:21 +0000
commit0534bcaf69430d28adf0ac9d9f7ce8ef6e5ce429 (patch)
tree20b5dc96c2b5006b62f393b85afedcb718814400 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent4dc846980edd1fc33a021e4f80b7403c843e1991 (diff)
downloadscala-0534bcaf69430d28adf0ac9d9f7ce8ef6e5ce429.tar.gz
scala-0534bcaf69430d28adf0ac9d9f7ce8ef6e5ce429.tar.bz2
scala-0534bcaf69430d28adf0ac9d9f7ce8ef6e5ce429.zip
partial revert of r23128 ("see #3859.
no review
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 49e3505946..742f792e84 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -2679,7 +2679,7 @@ trait Typers { self: Analyzer =>
// and Array.apply(x: Int, xs: Int*): Array[Int] (and similar)
case Apply(fun, args) =>
val typedFun = typed(fun, funMode(mode), WildcardType)
- if (isArray_Apply(typedFun.symbol))
+ if (typedFun.symbol.owner == ArrayModule.moduleClass && typedFun.symbol.name == nme.apply)
pt match {
case TypeRef(_, ArrayClass, targ :: _) =>
trees2ConstArg(args, targ)
@@ -3404,7 +3404,7 @@ trait Typers { self: Analyzer =>
res.tpe = res.tpe.notNull
}
*/
- if (isArray_Apply(fun2.symbol)) {
+ if (fun2.symbol == Array_apply) {
val checked = gen.mkCheckInit(res)
// this check is needed to avoid infinite recursion in Duplicators
// (calling typed1 more than once for the same tree)