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:
10
vlib/v/tests/repl/fn_calls.repl
Normal file
10
vlib/v/tests/repl/fn_calls.repl
Normal 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
|
||||
3
vlib/v/tests/repl/void_vlib_fncall.repl
Normal file
3
vlib/v/tests/repl/void_vlib_fncall.repl
Normal file
@@ -0,0 +1,3 @@
|
||||
os.write_file('hi','hi')?
|
||||
os.rm('hi')?
|
||||
===output===
|
||||
Reference in New Issue
Block a user