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

dump and println act different #22794

Open
enghitalo opened this issue Nov 8, 2024 · 0 comments
Open

dump and println act different #22794

enghitalo opened this issue Nov 8, 2024 · 0 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@enghitalo
Copy link
Contributor

enghitalo commented Nov 8, 2024

Describe the bug

string in println act different from

Reproduction Steps

fn test_main() {
	la := 'lalala'
	la2 := &la
	a(la2)
	assert false
}

fn a[T](t &T) {
	println(t)
	dump(t)
}

Expected Behavior

lalala
[/home/hitalo/Documents/v_wip/v/vlib/x/json2/decoder2/tests/decode_number_and_boolean_test.v:109] t: lalala

Current Behavior

lalala
[/home/hitalo/Documents/v_wip/v/vlib/x/json2/decoder2/tests/decode_number_and_boolean_test.v:109] t: &lalala

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.8 31d6c47

Environment details (OS name and version, etc.)

Linux

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Huly®: V_0.6-21240

@enghitalo enghitalo added the Bug This tag is applied to issues which reports bugs. label Nov 8, 2024
@enghitalo enghitalo changed the title string in println act different from dump in println act different from Nov 8, 2024
@enghitalo enghitalo changed the title dump in println act different from dump and println act different Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

1 participant