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

compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors

This commit is contained in:
joe-conigliaro
2019-09-26 00:59:50 +10:00
committed by Alexander Medvednikov
parent a124d1f0eb
commit d4bae356ba
10 changed files with 25 additions and 22 deletions

View File

@@ -133,7 +133,7 @@ pub fn get_module_filename(handle HANDLE) ?string {
return _filename
default:
// Must handled with GetLastError and converted by FormatMessage
return error('Cannot get file name from handle.')
return error('Cannot get file name from handle')
}
}
panic('this should be unreachable') // TODO remove unreachable after loop