inklecate stack overflow - Knot and variable with same name
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 540
- PR merge metrics
- No merged PRs in 30d
Description
`inklecate -p` crashes on the following script
```
~temp scene = 0
->Start(scene)
===Start(ref scene)
~scene++
SCENE {scene}
-> END
```
```
Stack overflow.
at System.String.GetNonRandomizedHashCode()
at System.Collections.Generic.NonRandomizedStringEqualityComparer+OrdinalComparer.GetHashCode(System.String)
at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FindValue(System.__Canon)
at System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryGetValue(System.__Canon, System.__Canon ByRef)
at Ink.Runtime.CallStack.GetTemporaryVariableWithName(System.String, Int32)
at Ink.Runtime.VariablesState.GetRawVariableWithName(System.String, Int32)
at Ink.Runtime.VariablesState.GetVariableWithName(System.String, Int32)
at Ink.Runtime.VariablesState.ValueAtVariablePointer(Ink.Runtime.VariablePointerValue)
at Ink.Runtime.VariablesState.GetVariableWithName(System.String, Int32)
at Ink.Runtime.VariablesState.ValueAtVariablePointer(Ink.Runtime.VariablePointerValue)
```
https://chromy.github.io/ink-proof/#!/result/6459?showEverything=true
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.