git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18635 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
5c66e91b7b
commit
bafa81d485
|
@ -1414,7 +1414,10 @@ trait Types {
|
|||
val args = typeArgsOrDummies
|
||||
if (args.length == sym.typeParams.length)
|
||||
tp.asSeenFrom(pre, sym.owner).instantiateTypeParams(sym.typeParams, args)
|
||||
else { assert(sym.typeParams.isEmpty || (args exists (_.isError)), tp); tp }
|
||||
else {
|
||||
assert(sym.typeParams.isEmpty || (args exists (_.isError)) || isRaw(sym, args)/*#2266/2305*/, tp)
|
||||
tp
|
||||
}
|
||||
// @M TODO maybe we shouldn't instantiate type params if isHigherKinded -- probably needed for partial type application though
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue