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

print does not automatically apply .str() #1786

Closed
avitkauskas opened this issue Aug 29, 2019 · 1 comment
Closed

print does not automatically apply .str() #1786

avitkauskas opened this issue Aug 29, 2019 · 1 comment
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@avitkauskas
Copy link
Contributor

V version:
commit 52c2763

What did you do?
print(1)

What did you expect to see?
1

What did you see instead?
test.v:1:7: Fn "print" wrong arg #1. Expected "string" (s) but got "int"

Comments
print(1.str())
test.v:1:10: Fn "print" wrong arg #1. Expected "string" (s) but got "f32"

a := 1
print(a)

test.v:2:8: Fn "print" wrong arg #1. Expected "string" (s) but got "int"

a := 1
print(a.str())

1

@avitkauskas avitkauskas added the Bug This tag is applied to issues which reports bugs. label Aug 29, 2019
@medvednikov
Copy link
Member

Fixed.

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

2 participants