inkle / inkle/inky

Warning hints at functionality that doesn't exist when using out of scope temporary variable with +=

Open
#465 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

Temporary variables appear to only be accessible in the scope they were declared in, and not accessible to child containers.
The error message shown when trying to access them using += suggests that they should be accessible, as if ink was searching parent objects, but it seems not to.

The image shows a repro.
image

When using = the error message reflects how ink actually works - it doesn't search parent objects.
image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.