$ mojo trying_stuff2.mojo
/projects/open_source/mojo/trying_stuff2.mojo:5:8: error: redefinition of function '__init__' with identical signature
fn __init__(inout self, *, some_other_arg: Self):
^
/projects/open_source/mojo/trying_stuff2.mojo:2:8: note: previous definition here
fn __init__(inout self, some_arg: Self):
^
mojo: error: failed to parse the provided Mojo source module
While the two signatures are clearly different. it's not possible to have ambiguity in the call of the constructor, so there is no reason for the compiler to disallow it.
Bug description
I get the following error:
While the two signatures are clearly different. it's not possible to have ambiguity in the call of the constructor, so there is no reason for the compiler to disallow it.
Steps to reproduce
System information