diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-10-04 10:53:57 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-10-04 10:53:57 -0700 |
commit | 8db838eb7f19662fe453f36bb12b4fcdf6a33a9f (patch) | |
tree | 2efddbaad885744d04dc98711afb5b5476e6aee4 | |
parent | 90a312669b37d6e3e3f08685953ded24759e6102 (diff) | |
download | scala-8db838eb7f19662fe453f36bb12b4fcdf6a33a9f.tar.gz scala-8db838eb7f19662fe453f36bb12b4fcdf6a33a9f.tar.bz2 scala-8db838eb7f19662fe453f36bb12b4fcdf6a33a9f.zip |
Simplify partest.task target, fix typo in comment.
-rwxr-xr-x | build.xml | 4 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1623,7 +1623,7 @@ TODO: </target> <!-- See test/build-partest.xml for the macro(s) being used here. --> - <target name="partest.task" depends="init,pack.done"> + <target name="partest.task" depends="pack.done"> <!-- note the classpathref! this is the classpath used to run partest, so it must have the new compiler.... --> <taskdef @@ -1631,7 +1631,7 @@ TODO: resource="scala/tools/partest/antlib.xml"/> </target> - <target name="test.suite.init" depends="pack.done, partest.task"> + <target name="test.suite.init" depends="partest.task"> <!-- read by test/partest to determine classpath used to run partest --> <propertyfile file = "build/pack/partest.properties"> <entry key = "partest.classpath" value="${toString:partest.compilation.path}"/> diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index ecd987b031..7d61e701fe 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2484,7 +2484,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper assert(pt.typeSymbol == PartialFunctionClass, s"PartialFunction synthesis for match in $tree requires PartialFunction expected type, but got $pt.") val targs = pt.dealiasWiden.typeArgs - // if targs.head isn't fully defined, we can translate --> error + // if targs.head isn't fully defined, we can't translate --> error targs match { case argTp :: _ if isFullyDefined(argTp) => // ok case _ => // uh-oh |