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

parser: do not allow "int?", only "?int"

This commit is contained in:
Alexander Medvednikov
2019-09-23 23:17:06 +03:00
parent f27f3515ae
commit d2d75f3824
6 changed files with 10 additions and 17 deletions

View File

@ -25,7 +25,7 @@ pub fn full_path_to_v() string {
return vexec
}
pub fn run_repl_file(wd string, vexec string, file string) string? {
pub fn run_repl_file(wd string, vexec string, file string) ?string {
fcontent := os.read_file(file) or { return error('Could not read file $file') }
content := fcontent.replace('\r', '')
input := content.all_before('===output===\n')