DE-labtory / koa

The koa is a high-level language that has more expressions than the bitcoin script and is simpler and easy to analyze
Apache License 2.0
74 stars 18 forks source link

[parser] when parsing contract block, should enter/leave scope #309

Closed zeroFruit closed 5 years ago

zeroFruit commented 5 years ago

Where parser

Bug detail

func add(int a, int b) {}

func foo(int a, int c) {}

is not allowed, because a is added scope when parsing add and when parsing foo because a is already added to scope this throw an error.