Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl: fix compileCompositeLitEx struct for sliceLit/mapLit #1961

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

visualfc
Copy link
Member

@visualfc visualfc commented Aug 3, 2024

compileCompositeLitEx

  • struct
type T struct {
	s  []any
	m  map[any]any
	fn func(int) int
}
echo &T{[10, 3.14, 200], {10: "A", 3.14: "B", 200: "C"}, (x => x)}
echo &T{s: [10, 3.14, 200], m: {10: "A", 3.14: "B", 200: "C"}, fn: (x => x)}
  • slice/map
var a [][]any = {[10, 3.14, 200], [100, 200]}
var m map[any][]any = {10: [10, 3.14, 200]}
var f map[any]func(int) int = {10: x => x}

Copy link

codecov bot commented Aug 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.32%. Comparing base (e3757c5) to head (066ca57).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1961      +/-   ##
==========================================
+ Coverage   93.30%   93.32%   +0.02%     
==========================================
  Files          42       42              
  Lines       11668    11703      +35     
==========================================
+ Hits        10887    10922      +35     
  Misses        624      624              
  Partials      157      157              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@visualfc visualfc force-pushed the fixcomposite branch 3 times, most recently from cd13170 to 9a3b3e7 Compare August 3, 2024 10:02
@visualfc visualfc force-pushed the fixcomposite branch 4 times, most recently from 0d57e9c to fd62e51 Compare August 4, 2024 13:23
@xushiwei xushiwei merged commit 37cf612 into goplus:main Aug 7, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants