<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 18, 2016, at 7:23 AM, zh ao via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:georgia,serif">I do think there is something wrong here.</div><div class="gmail_default" style="font-family:georgia,serif"><br class=""></div><div class="gmail_default" style="font-family:georgia,serif">// Xcode 7.3.1, Swift 2.2</div><div class="gmail_default" style="font-family:georgia,serif"><br class=""></div><div class="gmail_default"><div class="gmail_default"><font face="georgia, serif" class="">let t1: Int? = 2 // struct Int?</font></div><div class="gmail_default"><font face="georgia, serif" class="">let y = t1 ?? "abcdf" // error</font></div><div class="gmail_default"><font face="georgia, serif" class="">let x = t1 ?? NSFont(name: "", size: 0) // x: NSObject?</font></div><div class="gmail_default"><font face="georgia, serif" class=""><br class=""></font></div><div class="gmail_default"><font face="georgia, serif" class="">for x, how could it be NSObject?, as t1 is a struct?</font></div><div class="gmail_default"><br class=""></div><div class="gmail_default"><font face="georgia, serif" class="">zhaoxin</font></div></div></div></div></blockquote></div><br class=""><div class="">My guess would be NSNumber.</div><div class=""><br class=""></div><div class="">Strings can bridge to NSString (struct to class), enums of ErrorType to NSError (enum to class), etc.</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div></body></html>