<Type mismatch: inferred type is List&lt;main.Numb...
# forum
r
Type mismatch: inferred type is List&lt;main.Number&gt; but List&lt;kotlin.Number&gt; was expected I do not understand what is the difference between main.Number and kotlin.Number I am create a class in the main function in my program named Number and tried to put like constructor n1 a number that the user input when I try to save this a list the type Number type mismatch is throw . How can I fix this <a class="lightbox" href="

https://global.discourse-cdn.com/business5/uploads/kotlinlang/original/2X/e/eb7c886910eb0a908befc203b7d58e7f30f90816.png▾

"...