What's Changed
feature auto closure:
feature auto lambda:
- parser,printer: Auto Lambda by @xushiwei in #2829
- cl,build: Auto Lambda by @xushiwei in #2830
- ast: rename LambdaExpr => ArrowExpr, LambdaExpr2 => LambdaExpr by @xushiwei in #2831
- parser: autolambda bugfix by @xushiwei in #2833
- format: support loading autolambda info from gox.mod by @xushiwei in #2836
- cl: compileLambdaExpr with gogen.AutoLambdaCategory; gogen update from upstream by @xushiwei in #2839
feature for loop:
- cl: mv for range / for phrase test cases to cl/_testxgo by @xushiwei in #2838
- cl: rm support for obj.XGo_Enum(func(...)) by @xushiwei in #2842
- doc/for.md: The for Statement by @xushiwei in #2843
- doc/docs.md: for loop by @xushiwei in #2844
- fix(printer): handle for-phrase statements before expressions by @aofei in #2898
feature class fields
- parser,cl: mv 'multiple top-level var declarations in classfile' error from parser to cl by @xushiwei in #2822
- parser,cl: var declarations in classfile must be declared before functions by @xushiwei in #2823
- cl: class fields declaration must be declared before functions by @xushiwei in #2824
- parser: comments for fnExists & classFields by @xushiwei in #2825
changes:
- go 1.25; mod: golang.org/x/net v0.57.0 by @xushiwei in #2832
- xgo fmt: ignore Go files by default; chore: xgo fmt XGo source files by @xushiwei in #2837
- test for Go1.27 by @visualfc in #2851
- mod: github.com/goplus/lib v0.5.1 by @xushiwei in #2853
- mod: github.com/goplus/gogen v1.24.1 by @xushiwei in #2857
- mod: github.com/goplus/gogen v1.24.7; github.com/goplus/lib v0.5.3 by @xushiwei in #2862
- mod: github.com/goplus/lib v0.5.4 by @xushiwei in #2863
- mod: upgrade gogen to v1.24.8 by @go-wyvern in #2864
- tool: fix nil pointer panic in checkGopDeps when compilation fails (#2861) by @fennoai[bot] in #2865
- tool: preserve classfile requires in xgo mod tidy (#2175) by @fennoai[bot] in #2879
- mod: github.com/goplus/gogen v1.26.3 by @xushiwei in #2885
- cmd: use go1.27 by @xushiwei in #2893
- fix(cl): skip absent expression type information by @aofei in #2903
- fix(parser): preserve unnamed generic tuple fields by @aofei in #2901
- docs: rename CLAUDE.md to AGENTS.md by @aofei in #2900
- fix(cl): preserve class types after initializer errors by @aofei in #2897
- fix(cl): report positioned errors for recursive type aliases by @aofei in #2902
- docs: document shared XGo tooling conventions by @aofei in #2899
- fix(cl): recognize aliases in decorator callbacks by @aofei in #2905
deps:
- build(deps): bump github.com/qiniu/x 1.19.3 by @dependabot[bot] in #2886
- build(deps): bump github.com/goplus/mod 0.22.1 by @dependabot[bot] in #2868
- build(deps): bump github.com/goplus/lib 0.7.1 by @dependabot[bot] in #2891
- build(deps): bump github.com/goplus/gogen 1.26.6 by @dependabot[bot] in #2892
- build(deps): bump github.com/goplus/cobra 1.10.8 by @dependabot[bot] in #2855
ci & tools:
- build(deps): bump docker/login-action 4.8.0 by @dependabot[bot] in #2896
Full Changelog: v1.7.5...v1.7.6