You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
overloaded alternative of varargs method invoke-blocks intended target if Nothing is inferred #5859
@paulp said:
This must be why I say "Boolean parameters are bad; Booleans with defaults are worse." That kind of error is pretty much assured by the method signature. Additional pull request encouraged.
@retronym said:
More generally, recursive methods with defaults are open to this error. I've seen it often enough that I might add a check to Xlint ("recursive call should not use defaults").
Activity
scabug commentedon May 31, 2012
Imported From: https://issues.scala-lang.org/browse/SI-5859?orig=1
Reporter: @paulp
scabug commentedon Jun 5, 2012
@adriaanm said:
the Array(): _* invocation should be accepted
scabug commentedon Jun 5, 2012
@paulp said:
(As well as the Nil: _* invocation.)
scabug commentedon Oct 3, 2012
@retronym said:
I'm working on a fix here: https://github.com/retronym/scala/compare/ticket/5989-2
scabug commentedon Oct 3, 2012
@paulp said:
Sorry for not marking it in the ticket, but I fixed this a few days ago.
scala/scala@8886d22cd6
I sort of marked it when I took ownership of it, which usually means I've fixed it locally.
scabug commentedon Oct 3, 2012
@retronym said:
No worries. I don't have a motivating test case for it, but I'm pretty sure
isVarArgsOnlyshould be propagated here: https://github.com/scala/scala/blob/8886d2/src/compiler/scala/tools/nsc/typechecker/Infer.scala#L1651scabug commentedon Oct 3, 2012
@paulp said:
This must be why I say "Boolean parameters are bad; Booleans with defaults are worse." That kind of error is pretty much assured by the method signature. Additional pull request encouraged.
scabug commentedon Oct 3, 2012
@retronym said:
More generally, recursive methods with defaults are open to this error. I've seen it often enough that I might add a check to Xlint ("recursive call should not use defaults").
scabug commentedon Oct 3, 2012
@paulp said:
If you do, it will LGTM.
scabug commentedon Oct 4, 2012
@retronym said:
It's a tad noisy:
retronym/scala@3bfb6830#commitcomment-1949765
scabug commentedon Jan 22, 2013
@adriaanm said:
reopening for 2.10.1-RC1 backport