1 messages · Page 1 of 1 (latest)
a comptime scope forces everything inside to be run at comptime so this is probably not what you want to use here.
given a comptime known condition an if statement is implicitly resolved at comptime and so wont be present at runtime.
@hasDecl returns a comptime known value so the condition is comptime known.
np