Skip to content

ssa: handle union types in type conversion#1848

Open
zhouguangyuan0718 wants to merge 1 commit intoxgo-dev:mainfrom
zhouguangyuan0718:main-0504-new
Open

ssa: handle union types in type conversion#1848
zhouguangyuan0718 wants to merge 1 commit intoxgo-dev:mainfrom
zhouguangyuan0718:main-0504-new

Conversation

@zhouguangyuan0718
Copy link
Copy Markdown
Contributor

Summary

  • teach goTypes.cvtType to convert *types.Union values recursively
  • cache converted union types the same way as other composite types
  • add a regression test covering a degenerate union interface used as a value type

Testing

  • go test ./test -run TestVerificationKeyUnionDegenerate -count=1

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ssa/type_cvt.go 0.00% 18 Missing ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: ZhouGuangyuan <zhouguangyuan.xian@gmail.com>
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