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

test: add a test for short enum syntax across modules (related #12183) #22210

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

yuyi98
Copy link
Member

@yuyi98 yuyi98 commented Sep 13, 2024

This PR add a test for short enum syntax across modules (related #12183).

  • Add a test for short enum syntax across modules.
  • Modify all the related files.
import net.http

fn main() {
	header := http.new_header_from_map({
		.content_type: 'application/json'
	})

	println(header)
}

PS D:\Test\v\tt1> v run .       
Content-Type: application/json

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@spytheman spytheman merged commit cc7665f into vlang:master Sep 13, 2024
73 checks passed
@yuyi98 yuyi98 deleted the test_short_enum_across_module branch September 14, 2024 06:15
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