diff options
author | Martin Odersky <odersky@gmail.com> | 2006-10-07 14:24:21 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-10-07 14:24:21 +0000 |
commit | 24284feee5c3dfebbbd8dc317b30a657cf9fe42c (patch) | |
tree | 5ae1fe9e3770ce1f11b99842d6a0fc4fdc613cdc /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | fa37aa44cc4219f4cf5e7f85817be501104cf2dd (diff) | |
download | scala-24284feee5c3dfebbbd8dc317b30a657cf9fe42c.tar.gz scala-24284feee5c3dfebbbd8dc317b30a657cf9fe42c.tar.bz2 scala-24284feee5c3dfebbbd8dc317b30a657cf9fe42c.zip |
towards getting wildcard types
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
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 7a452479d6..d8c35441b2 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -1127,7 +1127,7 @@ trait Typers requires Analyzer { // preadapt symbol to number of arguments given val argtypes = args map (arg => AllClass.tpe) val pre = fun.symbol.tpe.prefix - val sym = fun.symbol filter (alt => isApplicable(context.undetparams, pre, alt, argtypes, pt)) + val sym = fun.symbol filter (alt => isApplicable(context.undetparams, pre.memberType(alt), argtypes, pt)) if (sym != NoSymbol) fun = adapt(fun setSymbol sym setType pre.memberType(sym), funMode(mode), WildcardType) } |