Avatar
true falsestderr:<stdin>:2:9: warning: checking a value with optional type 'Optional<Int>' against dynamic type 'Int' succeeds whenever the value is non-nil; did you mean to use '!= nil'? print(a is Int) ~ ^~~~~~ != nil <stdin>:3:26: warning: cast from 'Optional<Int>.Type' to unrelated type 'Int.Type' always fails print(Optional<Int>.self is Int.Type) ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ (edited)