mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
703 B
Swift
17 lines
703 B
Swift
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: OS=linux-gnu
|
|
// REQUIRES: embedded_stdlib
|
|
// REQUIRES: swift_feature_Embedded
|
|
// RUN: %batch-code-completion -enable-experimental-feature Embedded
|
|
|
|
func test() {
|
|
#^GLOBAL^#
|
|
// GLOBAL: Literal[Integer]/None: 0[#Int#];
|
|
// GLOBAL: Literal[Boolean]/None: true[#Bool#];
|
|
// GLOBAL: Literal[Boolean]/None: false[#Bool#];
|
|
// GLOBAL: Literal[Nil]/None: nil;
|
|
// GLOBAL: Literal[String]/None: "{#(abc)#}"[#String#];
|
|
// GLOBAL: Literal[Array]/None: [{#(values)#}][#Array<Element>#];
|
|
// GLOBAL: Literal[Dictionary]/None: [{#(key)#}: {#(value)#}][#Dictionary<Key, Value>#];
|
|
}
|