You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I checked the type of comptime_add1 with @compileLog(@TypeOf(comptime_add1)) and found its type is fn(u32) var. Is this a bug or an intended behavior?
The text was updated successfully, but these errors were encountered:
The following code gets a compile error saying
expected type 'fn(u32) u32', found 'fn(u32) var'
.So, I checked the type of
comptime_add1
with@compileLog(@TypeOf(comptime_add1))
and found its type isfn(u32) var
. Is this a bug or an intended behavior?The text was updated successfully, but these errors were encountered: