attempting to compile this result in the following exception: System.ArgumentException: Key already exists in map (Parameter 'key') when attempting to add the variable declaration into the list of known declarations.
For some reason the inference is failing and seeing two versions of $badInference causing a duplicate key issue.
This flows onto YS-Unity and other places where the error is even more abstract and hard to understand.
What is the expected behavior?
The variable type should be able to be determine, or at least not crash.
What is the current behavior?
if you have the following Yarn file:
attempting to compile this result in the following exception:
System.ArgumentException: Key already exists in map (Parameter 'key')
when attempting to add the variable declaration into the list of known declarations. For some reason the inference is failing and seeing two versions of$badInference
causing a duplicate key issue. This flows onto YS-Unity and other places where the error is even more abstract and hard to understand.What is the expected behavior?
The variable type should be able to be determine, or at least not crash.