Files
swift-mirror/test/IDE/complete_embedded_linux.swift
Hamish Knight 0fc825b6fb [Completion] Remove uses of unbounded generic types
Ensure we always produce bounded generic type annotations and
contextual types.
2025-02-25 14:49:12 +00:00

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>#];
}