mesour-intellij-plugins / latte-pro-issues

2 stars 0 forks source link

Variable with Enum class is not recognized #163

Closed Lumeriol closed 1 month ago

Lumeriol commented 1 month ago

Describe the bug If I define a variable with class Enum in Latte, it is evaluated as mixed until I explicitly set its type.

Environment (please complete the following information):

To Reproduce mixed type image

correct type image

mesour commented 1 month ago

Correct is string, because ::class contains string, not instance of class. It is fixed in 1.3.0, if not, feel free to reopen issue

image