The cause is this other exception: `java.lang.Ille...
# compiler
m
The cause is this other exception:
java.lang.IllegalStateException: Error type encountered: [ERROR : <ERROR FUNCTION RETURN TYPE>] (DeferredType)
It's not an informative message, to my eyes, unfortunately.
r
This mean you got to coge generation and it resolved and type checked properly but you seem to have found a bug in the codegen phase. Is there a minimal code example that triggers this? May be good to file an issue.
m
I managed to find a MCVE:
Copy code
class X {
    var x by x
}
There was a typo in my code, which was equivalent to the example above. The IDE does not mark any error, so I didn't see it for a while.
It's a known pending bug.
👍 1