h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
311 stars 23 forks source link

About Special Types in Generics #98

Closed ghost closed 3 years ago

ghost commented 3 years ago

Generics doesn't accept special types in. They only accept native types: int, bool etc. However i want to use my special typo in generics of operator signatures. For example:

(char|num :t)...

It throws an error:

(!) src/utils.min(73,4) [::]: Invalid type 'char|num' in generic in signature at position 1
    src/utils.min(73,4) in symbol: operator
    src/utils.min(73,4) in symbol: ::
    src\base.min(1,18) in symbol: require

???????

h3rald commented 3 years ago

OK, this is actually a bug! But luckily easy to fix. Will provide a fix soon!

ghost commented 3 years ago

I will be waiting your fixed release. ⏳ 👀

h3rald commented 3 years ago

This should be fixed in v0.29.1, please reopen if it still doesn't work!