Skip to content

In converting Ruby to Blocks, should occur error if variable scope change local to global, or global to local. #169

@takaokouji

Description

@takaokouji

First, you generate from Blocks to Ruby below.

$global_variable = 0
@local_variable = 0

Second, you change variable scope global to local, local to global below.

@global_variable = 0
$local_variable = 0

Finaly, you convert from Ruby to Blocks.

Expected behavior:

  • error occurd (error message is 「"@global_variable", can't change variable scope」), because can not change variable scope.

Actual behavior:

  • don't error occurd, and can't change variable scope, below.
$global_variable = 0
@local_variable = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggui

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions