From c456bebbcddae490a2ab2860855e936adb60539e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 9 Apr 2012 10:12:03 -0700 Subject: Less laborious type application. And eliminating redundancy. Reduced gratuitous usage of typeConstructor on symbols which don't have type parameters. --- src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala') diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala index 82ffc3fd9e..3d8c2ea564 100644 --- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala +++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala @@ -37,7 +37,7 @@ trait MethodSynthesis { require(container.owner.isPackageClass, "Container must be a top-level class in a package: " + container) require(tparams.size == args.size, "Arguments must match type constructor arity: " + tparams + ", " + args) - typeRef(container.typeConstructor.prefix, container, args map (_.tpe)) + appliedType(container, args map (_.tpe): _*) } def companionType[T](implicit m: M[T]) = -- cgit v1.2.3