Results 12 issues of ayou

# 🐛 bug report ## Preflight Checklist - [x] I have read the [Contributing Guidelines][contributing] for this project. - [x] I agree to follow the [Code of Conduct][code_of_conduct] that this...

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/playscript-java/src/examples/BlockScope.play#L20 因为在 type resolve 阶段已经把所有的变量定义都识别出来了,然后在 ref resolve 阶段解决分号中第一个 i 的引用时会在当前作用域中寻找到,所以分号中对 i 的赋值不会影响到根作用域的变量 i。运行了一下程序确实如此。

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/playscript-java/src/main/play/ASTEvaluator.java#L729 rtn = visitExpression(ctx.statementExpression); 是不是应该改为 rtn = visitExpression(ctx.expression()); 因为赋值语句的返回结果是'='右边的表达式 statementExpression=expression

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/playscript-java/src/main/play/ASTEvaluator.java#L729 charAt(0) 对应的难道不是 `'` 吗?

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/playscript-java/src/main/play/PrimitiveType.java#L37

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/playscript-java/src/main/play/DefaultFunctionType.java#L92

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/playscript-java/src/main/play/DefaultFunctionType.java#L69

https://github.com/RichardGong/PlayWithCompiler/blob/d51caeb2859065f938e91615a75f7cca53404089/lab/craft/SimpleScript.java#L160