It’s because you initialize and then reassign s
right away.
var s: String
var t: Bool = True
if t:
s = "s is used"
else:
s = "s is also used"
print(s)
Will remove the warnings.
It’s because you initialize and then reassign s
right away.
var s: String
var t: Bool = True
if t:
s = "s is used"
else:
s = "s is also used"
print(s)
Will remove the warnings.