Skip to content

BUG: class static member scope #663

Description

@Andrei-Pozolotin
  1. in python and brython the following works fine:
    https://www.brython.info/tests/editor.html?lang=en
classDataUnit:
static_one='one'static_two='two'static_total=static_one+static_two
  1. in transcrypt, generated js uses direct mapping
...
{static_one : 'one',static_two : 'two',static_total : static_one+static_two// SCOPE NOT AVAILABLE}
  1. solution: generated js could use class prefix:
...
{static_one : 'one',static_two : 'two',static_total : DataUnit.static_one+DataUnit.static_two,}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions