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 /src/compiler | |
parent | 90a312669b37d6e3e3f08685953ded24759e6102 (diff) | |
download | scala-8db838eb7f19662fe453f36bb12b4fcdf6a33a9f.tar.gz scala-8db838eb7f19662fe453f36bb12b4fcdf6a33a9f.tar.bz2 scala-8db838eb7f19662fe453f36bb12b4fcdf6a33a9f.zip |
Simplify partest.task target, fix typo in comment.
Diffstat (limited to 'src/compiler')
-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 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 |