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
It's extra bad since this example is taken from the change log.
Steps to reproduce
structS:
fn__init__(out self):
passfnmain():
# error: function cannot have both an 'out' argument and an explicit result type; remove the '-> None' to fix itvarf1: fn (out x: S) ->None= S.__init__# error: cannot implicitly convert 'fn(out self: S) -> None' value to 'fn() -> S' in 'var' initializevarf2: fn (out x: S) = S.__init__# this worksvarf3= S.__init__
The first spelling does work for ordinary function with out argument though:
Bug description
As title. CC. @lattner.
It's extra bad since this example is taken from the change log.
Steps to reproduce
The first spelling does work for ordinary function with
out
argument though:System information
The text was updated successfully, but these errors were encountered: