dbroggi
(Dante Broggi)
May 14, 2019, 1:53am
1
IDE: Visual Studio X/Fire
Version: 10.0.0.2399 (develop)
Target (If relevant): OSX
Description :
The parser fails to parse an empty tuple (Void
) in argument passing position.
Expected Behavior :
Compiles.
Actual Behavior :
“E: Syntax error [<file> (<line>)]”
"E: Declaration expected [<file> (<line>)]
Steps :
func foo(_ x: Void) {}
foo(()) // Errors Here
Thanks, logged as bugs://82583
mh
(marc hoffman)
May 14, 2019, 11:23am
3
what would ever be the point of this method?
dbroggi
(Dante Broggi)
May 14, 2019, 6:58pm
4
This is a reduction, so not much, however:
If foo
was generic, one might have instantiated a parameter as Void
if foo
used globals and the parameter was labeled (i.e. foo(_internal: ())
)
could be an internal variant for having pre-checked conditions.
possibly others?
bugs://82583 got closed with status fixed.