inkle / inkle/ink

BUG: passing a temp to a ref variable of the same name crashes the compiler

Open
#812 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

```

~temp i = 0
-> knot(i)

=== knot(ref i)
~i++

```

If you define the variable as a VAR there's a compilation error preventing the re-use of the name as a parameter, so this only happens with a temp.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides no file or test path; start by compiling the minimal Ink snippet that passes a temp to a same-named ref parameter and reproduce the compiler crash. Trace the failure around temp and parameter name handling. Done means the snippet compiles or reports a proper error without crashing, while the existing VAR name-reuse error remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.