mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
From the Swift documentation: "If you define an optional variable without providing a default value, the variable is automatically set to nil for you."
10 lines
387 B
Swift
10 lines
387 B
Swift
// RUN: %sourcekitd-test -req=index %s -- %s -module-name Swift %mcp_opt %clang-importer-sdk | %sed_clean > %t.response1
|
|
// RUN: diff -u %s.response %t.response1
|
|
// RUN: %sourcekitd-test -req=index %s -- %s -module-name 12345 %mcp_opt %clang-importer-sdk | %sed_clean > %t.response2
|
|
// RUN: diff -u %s.response %t.response2
|
|
|
|
import ObjectiveC
|
|
let v: NSObject?
|
|
|
|
// REQUIRES: objc_interop
|