Skip to content

IDL Problem Code 78 with alias illegal-chain

Want to disable me? Check out the configuration guide to learn more.

Execution Error

This is a fatal error that prevents IDL from compiling or running code

This problem detects when you have function methods chained together in a way that IDL doesn't support.

Each structure property should have a unique name.

Here is an example of this problem:

idl
a = myvar.method1().method2()
;         ^^^^^^^^^^^^^^^^^^^ illegal chain

You need to wrap the result from the first chain in parentheses in order to fix this:

idl
a = (myvar.method1()).method2()
;    ^^^^^^^^^^^^^^^ OK!

Licensed under MIT.