diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-26 11:31:40 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-26 11:31:40 -0700 |
commit | b716261a7b29bcf613cb4e3b47ca2fb5a97380bb (patch) | |
tree | 898dd03c5108f114094f13cd50525857c158cb24 /src/compiler/scala/tools/nsc/typechecker/Macros.scala | |
parent | cf08f25d598a1d44ed4440b1cc1097a5869aefdd (diff) | |
download | scala-b716261a7b29bcf613cb4e3b47ca2fb5a97380bb.tar.gz scala-b716261a7b29bcf613cb4e3b47ca2fb5a97380bb.tar.bz2 scala-b716261a7b29bcf613cb4e3b47ca2fb5a97380bb.zip |
Avoid relying on auto-tupling.
When you call
Some(a, b, c)
The compiler does eventually figure out that you meant
Some((a, b, c))
However the compiler finds this inordinately taxing, and
because this auto-tupling is dangerous, -Xlint warns about it.
In the interests of being able to hear -Xlint's important
points, we write Some((a, b, c)) to give it less to warn about.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Macros.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Macros.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Macros.scala b/src/compiler/scala/tools/nsc/typechecker/Macros.scala index f9a35ba9a0..bcc37e8b37 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Macros.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Macros.scala @@ -354,7 +354,7 @@ trait Macros extends scala.tools.reflect.FastTrack with Traces { macroTraceVerbose("tparams are: ")(tparams) macroTraceVerbose("vparamss are: ")(vparamss) macroTraceVerbose("retTpe is: ")(retTpe) - macroTraceVerbose("macroImplSig is: ")(paramss, implRetTpe) + macroTraceVerbose("macroImplSig is: ")((paramss, implRetTpe)) } /** Verifies that the body of a macro def typechecks to a reference to a static public non-overloaded method, |