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:
committed by
Alexander Medvednikov
parent
a124d1f0eb
commit
d4bae356ba
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user