Why doesn't my .text or .append work in my function?

I am working on research project and I am building a simple calculator to gain understanding of Kotlin. There is an error, I cannot figure out. My .text and .append do not seem to work in my function?

Can you post the error message?

1 Like

What are Expression and Result? Are they singleton objects?

Yes they are.

For singletons your code does not make any sense. You should provide definitions for them, otherwise, it is not possible to diagnose the problem.