convert error: 'Int' to 'IntLiteral' trying to implement the FloatLiteral.__round__(ndigits) method
I'm trying to contribute implementing the FloatLiteral.round() method with the current implementation:
But I'm receiving the
If I change the type to from
.
But I'm receiving the
error: cannot implicitly convert 'Int' value to 'IntLiteral' in 'var' initializer in the var pow: IntLiteral = 10 ** ndigits lineIf I change the type to from
IntLiteral to Int this will move the error to the following line, the to_round declaration.
