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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user