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

vrepl: fix optional call

This commit is contained in:
yuyi 2020-06-24 18:45:48 +08:00 committed by GitHub
parent 514ee9d396
commit 5f36874c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -198,7 +198,7 @@ fn run_repl(workdir string, vrepl_prefix string) {
'=', '++', '--', '<<',
'//', '/*',
'fn ', 'pub ', 'mut ', 'enum ', 'const ', 'struct ', 'interface ', 'import ',
'#include ', ':=', 'for '
'#include ', ':=', 'for ', 'or '
]
mut is_statement := false
for pattern in possible_statement_patterns {

View File

@ -0,0 +1,3 @@
import os
os.cp('', '') or {return}
===output===