1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

repl: reproduce the void print function error (#13372)

This commit is contained in:
Vincenzo Palazzo
2022-02-06 07:05:25 +01:00
committed by GitHub
parent f23d2c8cf4
commit 4e13ee22e9
3 changed files with 108 additions and 30 deletions

View File

@@ -0,0 +1,10 @@
math.sinf(50.0)
println(1+math.sinf(50.0))
fn test() { println('foo') } fn test2(a int) { println(a) }
test()
test2(123)
===output===
-0.2623749
0.7376251
foo
123

View File

@@ -0,0 +1,3 @@
os.write_file('hi','hi')?
os.rm('hi')?
===output===