flofriday / Moose

🐐 A new fun programming language
MIT License
6 stars 1 forks source link

FInding functions and operators for Subtypes of classes #18

Closed Jozott00 closed 1 year ago

Jozott00 commented 2 years ago

So

a(A())

func a(a: B) {}
class A < B{}
class B{}

fails at the moment, as well as

++A()

prefix ++ (a: B) {}
class A < B{}
class B{}
flofriday commented 2 years ago

Oh no, can you also post the Error?

And are those already tests? If not we schould add them.

Jozott00 commented 2 years ago

Yes these are already tests. The issue is more like a reminder for me to implement it ^^ we have to add it to the rate function in the typescope. Right now only builtin types are considered