Hi everyone, I'm running into an issue I've never seen before. I'm creating a class that implements a particular interface. Now, I want to pass that class to a function and create a new instance of that class from that function. However, I run into the error message from the title, even though I can create new instances outside of the function. What am I missing here? Here's a link to an example code:
edit: see below
Reading online a bit about this is looks like it has something to do with how I'm importing the class. But as you can see i this code, it's all in the same file. I have no idea what's happening ๐คทโโ๏ธ Thanks!