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

checker: check reference return to be really reference (#7739)

This commit is contained in:
Uwe Krüger
2020-12-31 12:42:22 +01:00
committed by GitHub
parent a9ab79d301
commit 74ea5ac99f
5 changed files with 42 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ pub mut:
// so that the user can set callbacks, read meta information, etc.
pub fn info() &LiveReloadInfo {
if C.g_live_info != 0 {
return C.g_live_info
return &LiveReloadInfo(C.g_live_info)
}
// When the current program is not compiled with -live, simply
// return a new empty struct LiveReloadInfo in order to prevent