Skip to content

Typos: test/IDE #75026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/IDE/Inputs/foo_swift_module.printed.comments.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ enum MyQuickLookObject {
}
var globalVar: Int
func hiddenImport()
func overlayedFoo()
func overlaidFoo()
func visibleImport()
precedencegroup High {
associativity: left
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/Inputs/foo_swift_module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal postfix func =->(lhs: Int) -> Int {
public func visibleImport() {}
public func hiddenImport() {}

public func overlayedFoo() {}
public func overlaidFoo() {}

public var globalVar: Int = 0

Expand Down
2 changes: 1 addition & 1 deletion test/IDE/Inputs/foo_swift_module_overlay.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@_exported import FooSwiftModule

public func overlayedFoo() {}
public func overlaidFoo() {}
public func onlyInFooOverlay() {}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

#ifndef OVERLAID_H
#define OVERLAID_H

struct __attribute__((swift_name("Overlaid"))) OVOverlaid {
double x, y, z;
};

double OVOverlaidInOriginalFunc(struct OVOverlaid s) __attribute__((swift_name("Overlaid.inOriginalFunc(self:)")));

struct OVOverlaid createOverlaid();

#endif
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#include <OverlayTest/Overlayed.h>
#include <OverlayTest/Overlaid.h>

This file was deleted.

4 changes: 2 additions & 2 deletions test/IDE/Inputs/mock-sdk/OverlayTest.swiftinterface
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

@_exported import OverlayTest

public extension Overlayed {
public extension Overlaid {
public func inOverlayFunc() {}
}

public func createOverlayedInOverlay() -> Overlayed
public func createOverlaidInOverlay() -> Overlaid
2 changes: 1 addition & 1 deletion test/IDE/complete_accessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ extension UNKNOWN_TYPE {
get {}
#^UNKNOWN_EXT_PROPERTY_SECOND?check=NO_GLOBAL;check=NO_SELF;check=WITH_GETSET;check=WITH_OBSERVER^#
}
subscript<T>(_1 index: T) -> T where T: ANOTHER_UNKNWON_TYPE {
subscript<T>(_1 index: T) -> T where T: ANOTHER_UNKNOWN_TYPE {
#^UNKNOWN_EXT_SUBSCRIPT_FIRST?check=WITH_GLOBAL;check=WITH_SELF;check=WITH_GETSET;check=NO_OBSERVER^#
}
subscript(_2 index: Int) -> String {
Expand Down
8 changes: 4 additions & 4 deletions test/IDE/complete_attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ struct MyValue {
// MEMBER_MyValue-DAG: Decl[Constructor]/CurrNominal: init()[#MyValue#];
// MEMBER_MyValue-DAG: Decl[StaticVar]/CurrNominal: val[#Int#];

class TestUnkownDanglingAttr1 {
@UknownAttr(arg: MyValue.#^ATTRARG_MEMBER^#)
class TestUnknownDanglingAttr1 {
@UnknownAttr(arg: MyValue.#^ATTRARG_MEMBER^#)
}
class TestUnkownDanglingAttr2 {
@UknownAttr(arg: { MyValue.#^ATTRARG_MEMBER_IN_CLOSURE^# })
class TestUnknownDanglingAttr2 {
@UnknownAttr(arg: { MyValue.#^ATTRARG_MEMBER_IN_CLOSURE^# })
}
18 changes: 9 additions & 9 deletions test/IDE/complete_call_arg.swift
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ func testImplicitMemberInArrayLiteral() {
struct Wrap<T> {
func method<U>(_ fn: (T) -> U) -> Wrap<U> {}
}
func testGenricMethodOnGenericOfArchetype<Wrapped>(value: Wrap<Wrapped>) {
func testGenericMethodOnGenericOfArchetype<Wrapped>(value: Wrap<Wrapped>) {
value.method(#^ARCHETYPE_GENERIC_1^#)
// ARCHETYPE_GENERIC_1: Decl[InstanceMethod]/CurrNominal/Flair[ArgLabels]: ['(']{#(fn): (Wrapped) -> U##(Wrapped) -> U#}[')'][#Wrap<U>#];
}
Expand Down Expand Up @@ -780,7 +780,7 @@ func testAfterVariadic() {
}
}

func testClosurePlaceholderContainsInternalParameterNamesIfPresentInSiganture() {
func testClosurePlaceholderContainsInternalParameterNamesIfPresentInSignature() {
func sort(callback: (_ left: Int, _ right: Int) -> Bool) {}
sort(#^CLOSURE_PARAM_WITH_INTERNAL_NAME^#)
// CLOSURE_PARAM_WITH_INTERNAL_NAME: Begin completions, 1 item
Expand Down Expand Up @@ -1072,16 +1072,16 @@ func testArgsAfterCompletion() {
// INVALID_MISSINGCONFORMANCE-DAG: Pattern/Local/Flair[ArgLabels]: {#p: String#}[#String#]; name=p:
// INVALID_MISSINGCONFORMANCE-DAG: Pattern/Local/Flair[ArgLabels]: {#y: String#}[#String#]; name=y:

overloadedGeneric(x: 1, #^INVALID_MISSINGCONFORMANCE_NOCOMMA?check=INVALID_MISSINGCONFORMANCE^# z: MisingConformance(), zz: MissingConformance())
overloadedGeneric(x: 1, #^INVALID_MISSINGCONFORMANCE_NOCOMMA?check=INVALID_MISSINGCONFORMANCE^# z: MissingConformance(), zz: MissingConformance())
overloadedGeneric(x: 1, #^INVALID_MISSINGCONFORMANCE_INDIRECT?check=INVALID_MISSINGCONFORMANCE^#, z: [MissingConformance()], zz: [MissingConformance()])
overloadedGeneric(x: 1, #^INVALID_MISSINGCONFORMANCE_CONSTRAINT?check=INVALID_MISSINGCONFORMANCE_CONSTAINT^#, z: [CondConfType("foo")], zz: [CondConfType("bar")])
SubOverloadedGeneric()[x: 1, #^INVALID_MISSINGCONFORMANCE_NOCOMMA_SUB?check=INVALID_MISSINGCONFORMANCE^# z: MisingConformance(), zz: MissingConformance()]
overloadedGeneric(x: 1, #^INVALID_MISSINGCONFORMANCE_CONSTRAINT?check=INVALID_MISSINGCONFORMANCE_CONSTRAINT^#, z: [CondConfType("foo")], zz: [CondConfType("bar")])
SubOverloadedGeneric()[x: 1, #^INVALID_MISSINGCONFORMANCE_NOCOMMA_SUB?check=INVALID_MISSINGCONFORMANCE^# z: MissingConformance(), zz: MissingConformance()]
SubOverloadedGeneric()[x: 1, #^INVALID_MISSINGCONFORMANCE_INDIRECT_SUB?check=INVALID_MISSINGCONFORMANCE^#, z: [MissingConformance()], zz: [MissingConformance()]]
SubOverloadedGeneric()[x: 1, #^INVALID_MISSINGCONFORMANCE_CONSTRAINT_SUB?check=INVALID_MISSINGCONFORMANCE_CONSTAINT^#, z: [CondConfType("foo")], zz: [CondConfType("bar")]]
SubOverloadedGeneric()[x: 1, #^INVALID_MISSINGCONFORMANCE_CONSTRAINT_SUB?check=INVALID_MISSINGCONFORMANCE_CONSTRAINT^#, z: [CondConfType("foo")], zz: [CondConfType("bar")]]

// INVALID_MISSINGCONFORMANCE_CONSTAINT: Begin completions, 2 items
// INVALID_MISSINGCONFORMANCE_CONSTAINT-DAG: Pattern/Local/Flair[ArgLabels]: {#y: String#}[#String#]; name=y:
// INVALID_MISSINGCONFORMANCE_CONSTAINT-DAG: Pattern/Local/Flair[ArgLabels]: {#p: String#}[#String#]; name=p:
// INVALID_MISSINGCONFORMANCE_CONSTRAINT: Begin completions, 2 items
// INVALID_MISSINGCONFORMANCE_CONSTRAINT-DAG: Pattern/Local/Flair[ArgLabels]: {#y: String#}[#String#]; name=y:
// INVALID_MISSINGCONFORMANCE_CONSTRAINT-DAG: Pattern/Local/Flair[ArgLabels]: {#p: String#}[#String#]; name=p:
}

func testFuncTyVars(param: (Int, String, Double) -> ()) {
Expand Down
6 changes: 3 additions & 3 deletions test/IDE/complete_call_pattern.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ struct FooStruct {
func testInsideFunctionCall_1(_ x: inout FooStruct) {
x.instanceFunc(#^BEFORE_COMMA^#,
// BEFORE_COMMA-NOT: Pattern/{{.*}}:{{.*}}({{.*}}{#Int#}
// BOFORE_COMMA-NOT: Decl[InstanceMethod]/{{.*}}:{{.*}}({{.*}}{#Int#}
// BEFORE_COMMA-NOT: Decl[InstanceMethod]/{{.*}}:{{.*}}({{.*}}{#Int#}
}
func testInsideFunctionCall_2(_ x: inout FooStruct) {
x.instanceFunc(#^BEFORE_PLACEHOLDER^#<#placeholder#>
// BEFORE_PLACEHOLDER-NOT: Pattern/{{.*}}:{{.*}}({{.*}}{#Int#}
// BOFORE_PLACEHOLDER-NOT: Decl[InstanceMethod]/{{.*}}:{{.*}}({{.*}}{#Int#}
// BEFORE_PLACEHOLDER-NOT: Decl[InstanceMethod]/{{.*}}:{{.*}}({{.*}}{#Int#}
}
func testConstructor() {
FooStruct(#^CONSTRUCTOR^#,
// CONSTURCTOR: Begin completions, 3 items
// CONSTRUCTOR: Begin completions, 3 items
// CONSTRUCTOR-DAG: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['('][')'][#FooStruct#];
// CONSTRUCTOR-DAG: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#a: Int#}[')'][#FooStruct#];
// CONSTRUCTOR-DAG: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#a: Int#}, {#b: Float#}[')'][#FooStruct#];
Expand Down
16 changes: 8 additions & 8 deletions test/IDE/complete_concurrency_specifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ func testSpecifierWithAsync() async #^SPECIFIER_WITHASYNC^#
func testSpecifierWithThrows() throws #^SPECIFIER_WITHTHROWS^#
func testSpecifierWithAsyncThorws() async throws #^SPECIFIER_WITHASYNCTHROWS^#

func testTypeSpecifier(_: () #^TYPE_SPECIFICER?check=SPECIFIER^#) {}
func testTypeSpecifierWithAsync(_: () async #^TYPE_SPECIFICER_WITHASYNC?check=SPECIFIER_WITHASYNC^#) {}
func testTypeSpecifierWithThrows(_: () throws #^TYPE_SPECIFICER_WITHTHROWS?check=SPECIFIER_WITHTHROWS^#) {}
func testTypeSpecifierWithAsyncThrows(_: () async throws #^TYPE_SPECIFICER_WITHASYNCTHROWS?check=SPECIFIER_WITHASYNCTHROWS^#) {}
func testTypeSpecifierWithArrow(_: () #^TYPE_SPECIFICER_WITHARROW?check=SPECIFIER^#) {}
func testTypeSpecifierWithAsyncArrow(_: () async #^TYPE_SPECIFICER_WITHASYNCARROW?check=SPECIFIER_WITHASYNC^# -> Void) {}
func testTypeSpecifierWithThrowsArrow(_: () throws #^TYPE_SPECIFICER_WITHTHROWSARROW?check=SPECIFIER_WITHTHROWS^# -> Void
func testTypeSpecifierWithAsyncThrowsArrow(_: () async throws #^TYPE_SPECIFICER_WITHASYNCTHROWSARROW?check=SPECIFIER_WITHASYNCTHROWS^# -> Void) {}
func testTypeSpecifier(_: () #^TYPE_SPECIFIER?check=SPECIFIER^#) {}
func testTypeSpecifierWithAsync(_: () async #^TYPE_SPECIFIER_WITHASYNC?check=SPECIFIER_WITHASYNC^#) {}
func testTypeSpecifierWithThrows(_: () throws #^TYPE_SPECIFIER_WITHTHROWS?check=SPECIFIER_WITHTHROWS^#) {}
func testTypeSpecifierWithAsyncThrows(_: () async throws #^TYPE_SPECIFIER_WITHASYNCTHROWS?check=SPECIFIER_WITHASYNCTHROWS^#) {}
func testTypeSpecifierWithArrow(_: () #^TYPE_SPECIFIER_WITHARROW?check=SPECIFIER^#) {}
func testTypeSpecifierWithAsyncArrow(_: () async #^TYPE_SPECIFIER_WITHASYNCARROW?check=SPECIFIER_WITHASYNC^# -> Void) {}
func testTypeSpecifierWithThrowsArrow(_: () throws #^TYPE_SPECIFIER_WITHTHROWSARROW?check=SPECIFIER_WITHTHROWS^# -> Void
func testTypeSpecifierWithAsyncThrowsArrow(_: () async throws #^TYPE_SPECIFIER_WITHASYNCTHROWSARROW?check=SPECIFIER_WITHASYNCTHROWS^# -> Void) {}

_ = { () #^CLOSURE?check=SPECIFIER^# in }
_ = { () async #^CLOSURE_WITHASYNC?check=SPECIFIER_WITHASYNC^# in }
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/complete_constrained.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func testVegetarian(chef: Chef<Vegetarian>) {
let _ = chefMeta.init(.#^CONDITIONAL_OVERLOAD_INIT_ARG^#)

chef.eat(.#^CONDITIONAL_INAPPLICABLE_ARG^#)
// Note: 'eat' is from an inapplicable constrained extension. We complete as if the user intends to addess that later
// Note: 'eat' is from an inapplicable constrained extension. We complete as if the user intends to address that later
// (e.g. by adding the missing 'Meat' conformance to 'Vegetarian' - clearly not the intention here - but replace 'Meat' with 'Equatable').
// CONDITIONAL_INAPPLICABLE_ARG: Begin completions, 2 items
// CONDITIONAL_INAPPLICABLE_ARG-DAG: Decl[EnumElement]/CurrNominal/Flair[ExprSpecific]/TypeRelation[Convertible]: chicken[#Meat#]; name=chicken
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/complete_constructor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func testHaveComma1() {
ExplicitConstructors1(#^HAVE_COMMA_1?check=EXPLICIT_CONSTRUCTORS_1P^#,
}

//===--- Test that we show default constuctors inherited from protocols
//===--- Test that we show default constructors inherited from protocols

protocol ProtDefaultInit {}
extension ProtDefaultInit { init(foo: Int) {}}
Expand Down
4 changes: 2 additions & 2 deletions test/IDE/complete_crossmodule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// BEGIN MyModule.swift

public protocol HasAssocWithConstraint {
associatedtype AssocWithContraint: HasAssocWithConstraint
var value: AssocWithContraint { get }
associatedtype AssocWithConstraint: HasAssocWithConstraint
var value: AssocWithConstraint { get }
}

// BEGIN Test.swift
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/complete_decl_attribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ actor MyGlobalActor {

@globalActor
actor MyGenericGlobalActor<T> {
static let shared = MyGenricGlobalActor<T>()
static let shared = MyGenericGlobalActor<T>()
}

@available(#^AVAILABILITY1^#)
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/complete_expr_after_paren.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MyClass: Base, MyProtocol {
override func method(method4: Int) {}
}

func testConstructer() {
func testConstructor() {
MyClass(#^INITIALIZER^#)
// INITIALIZER: Begin completions, 4 items
// INITIALIZER-DAG: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#init1: Int#}[')'][#MyClass#];
Expand Down
8 changes: 4 additions & 4 deletions test/IDE/complete_from_reexport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
// RUN: %FileCheck %s -check-prefix=TOP_LEVEL_1 < %t.txt
// RUN: %FileCheck %s -check-prefix=NO_DUPLICATES < %t.txt

// TOP_LEVEL_1-DAG: Decl[FreeFunction]/OtherModule[FooSwiftModuleOverlay]: overlayedFoo()[#Void#]{{; name=.+$}}
// TOP_LEVEL_1-DAG: Decl[FreeFunction]/OtherModule[FooSwiftModuleOverlay]: overlaidFoo()[#Void#]{{; name=.+$}}
// TOP_LEVEL_1-DAG: Decl[FreeFunction]/OtherModule[FooSwiftModuleOverlay]: onlyInFooOverlay()[#Void#]{{; name=.+$}}

// FIXME: there should be only one instance of this completion result.
// NO_DUPLICATES: overlayedFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES: overlayedFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES-NOT: overlayedFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES: overlaidFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES: overlaidFoo()[#Void#]{{; name=.+$}}
// NO_DUPLICATES-NOT: overlaidFoo()[#Void#]{{; name=.+$}}

import FooSwiftModuleOverlay

Expand Down
12 changes: 6 additions & 6 deletions test/IDE/complete_from_swift_module.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
// rdar://15305873 Code completion: implement proper shadowing of declarations represented by cached results
// FIXME: %FileCheck %s -check-prefix=TOP_LEVEL_1_NEGATIVE < %t.compl.txt

// RUN: %target-swift-ide-test -code-completion -source-filename %s -I %t -code-completion-token=AMBIGOUS_RESULT_BUILER > %t.compl.txt
// RUN: %FileCheck %s -check-prefix=AMBIGOUS_RESULT_BUILER < %t.compl.txt
// RUN: %target-swift-ide-test -code-completion -source-filename %s -I %t -code-completion-token=AMBIGUOUS_RESULT_BUILER > %t.compl.txt
// RUN: %FileCheck %s -check-prefix=AMBIGUOUS_RESULT_BUILER < %t.compl.txt

// ERROR_COMMON: found code completion token

Expand Down Expand Up @@ -158,11 +158,11 @@ func testAmbiguousResultBuilder() {

func test() {
Foo {
#^AMBIGOUS_RESULT_BUILER^#
#^AMBIGUOUS_RESULT_BUILER^#
}
// Results should only contain globalVar once
// AMBIGOUS_RESULT_BUILER-NOT: globalVar
// AMBIGOUS_RESULT_BUILER-DAG: Decl[GlobalVar]/OtherModule[foo_swift_module]/TypeRelation[Convertible]: globalVar[#Int#]; name=globalVar
// AMBIGOUS_RESULT_BUILER-NOT: globalVar
// AMBIGUOUS_RESULT_BUILER-NOT: globalVar
// AMBIGUOUS_RESULT_BUILER-DAG: Decl[GlobalVar]/OtherModule[foo_swift_module]/TypeRelation[Convertible]: globalVar[#Int#]; name=globalVar
// AMBIGUOUS_RESULT_BUILER-NOT: globalVar
}
}
6 changes: 3 additions & 3 deletions test/IDE/complete_in_closures.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %batch-code-completion

// EMTPY: Token
// EMPTY: Token
// EMPTY-NOT: Begin completions

//===--- Helper types that are used in this test
Expand Down Expand Up @@ -385,11 +385,11 @@ func testClosureInPatternBindingInit() {
case dragging(translation: Int, predictedLocation: Int)
}

func pnChanged(_ action: () -> Void) {}
func onChanged(_ action: () -> Void) {}

func foo() {
var gestureViewState: DragState = .dragging(translation: 0, predictedLocation: 0)
let longPressDrag = pnChanged {
let longPressDrag = onChanged {
_ = 1
gestureViewState = .dragging(translation: 0, #^CLOSURE_IN_PATTERN_BINDING^#predictedLocation: 0)
}
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/complete_inout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct Foo {
var myInt: Int

func bar() {
let context = Bar(wihtInout: &self.#^COMPLETE_INOUT?check=CHECK^#)
let context = Bar(withInout: &self.#^COMPLETE_INOUT?check=CHECK^#)
let context = Bar(withPointer: &self.#^COMPLETE_POINTER?check=CHECK^#)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func test() {
// GLOBALFUNC_SAMELINE-DAG: Pattern/Local/Flair[ArgLabels]: {#fn8: (Int...) -> Void {<#Int...#> in|}#}[#(Int...) -> Void#];
}

func testStringAndMulipleTrailingClosures() {
func testStringAndMultipleTrailingClosures() {
func stringAndClosure(_ key: String, _ body: () -> Void) {}

func takeClosure(_ x: () -> Void) {}
Expand Down
8 changes: 4 additions & 4 deletions test/IDE/complete_opaque_result.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// RUN: %batch-code-completion

protocol MyProtocol {
associatedtype Mistery
associatedtype Mystery
}
struct MyStruct {}
enum MyEnum {}
class MyClass {}
struct ConcreteMyProtocol : MyProtocol {
typealias Mistery = MyStruct
typealias Mystery = MyStruct
}

// MARK: 'some' keyword.
Expand All @@ -19,7 +19,7 @@ struct ConcreteMyProtocol : MyProtocol {
// BEGINNING_WITH_SOME-DAG: Decl[Protocol]/CurrModule: MyProtocol[#MyProtocol#]; name=MyProtocol
// BEGINNING_WITH_SOME-DAG: Decl[Struct]/CurrModule: MyStruct[#MyStruct#]; name=MyStruct

func gloabalFunc() -> #^GLOBAL_FUNC?check=BEGINNING_WITH_SOME^#
func globalFunc() -> #^GLOBAL_FUNC?check=BEGINNING_WITH_SOME^#
var globalVar: #^GLOBAL_VAR?check=BEGINNING_WITH_SOME^#

protocol SomeProto {
Expand Down Expand Up @@ -129,7 +129,7 @@ class HasTypealias : HasAssocWithConformanceConstraint {
// OVERRIDE_HasTypealias-DAG: Decl[InstanceMethod]/Super: func returnAssocWithConformanceConstraint(fn: (Int) -> Int) -> ConcreteMyProtocol {|};
}

// MARK: Postfix expession for opaque result types.
// MARK: Postfix expression for opaque result types.

protocol TestProtocol {
associatedtype Assoc1
Expand Down
12 changes: 6 additions & 6 deletions test/IDE/complete_overlaymodule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ func testGlobalType() {
// TYPE_GLOBAL-NOT: OverlayTest[#Module#]
// TYPE_GLOBAL-DAG: Decl[Module]/None: OverlayTest[#Module#];
// TYPE_GLOBAL-NOT: OverlayTest[#Module#]
// TYPE_GLOBAL-DAG: Decl[Struct]/OtherModule[OverlayTest.Overlayed]: Overlayed[#Overlayed#];
// TYPE_GLOBAL-DAG: Decl[Struct]/OtherModule[OverlayTest.Overlaid]: Overlaid[#Overlaid#];
}
func testGlobalExpr() {
let _ = #^EXPR_GLOBAL^#
// EXPR_GLOBAL-NOT: OverlayTest[#Module#]
// EXPR_GLOBAL-DAG: Decl[Module]/None: OverlayTest[#Module#];
// EXPR_GLOBAL-NOT: OverlayTest[#Module#]
// EXPR_GLOBAL-DAG: Decl[Struct]/OtherModule[OverlayTest.Overlayed]: Overlayed[#Overlayed#];
// EXPR_GLOBAL-DAG: Decl[FreeFunction]/OtherModule[OverlayTest]: createOverlayedInOverlay()[#Overlayed#];
// EXPR_GLOBAL-DAG: Decl[FreeFunction]/OtherModule[OverlayTest.Overlayed]: createOverlayed()[#Overlayed#];
// EXPR_GLOBAL-DAG: Decl[Struct]/OtherModule[OverlayTest.Overlaid]: Overlaid[#Overlaid#];
// EXPR_GLOBAL-DAG: Decl[FreeFunction]/OtherModule[OverlayTest]: createOverlaidInOverlay()[#Overlaid#];
// EXPR_GLOBAL-DAG: Decl[FreeFunction]/OtherModule[OverlayTest.Overlaid]: createOverlaid()[#Overlaid#];
}
func testGlobalExpr(value: Overlayed) {
func testGlobalExpr(value: Overlaid) {
value.#^EXPR_MEMBER^#
// EXPR_MEMBER: Begin completions, 6 items
// EXPR_MEMBER-DAG: Keyword[self]/CurrNominal: self[#Overlayed#]; name=self
// EXPR_MEMBER-DAG: Keyword[self]/CurrNominal: self[#Overlaid#]; name=self
// EXPR_MEMBER-DAG: Decl[InstanceVar]/CurrNominal: x[#Double#]; name=x
// EXPR_MEMBER-DAG: Decl[InstanceVar]/CurrNominal: y[#Double#]; name=y
// EXPR_MEMBER-DAG: Decl[InstanceVar]/CurrNominal: z[#Double#]; name=z
Expand Down
4 changes: 2 additions & 2 deletions test/IDE/complete_shadowing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var globalTest: Int = 1
func test_Global_Local() {
var globalTest: String = ""
#^Global_Local^#
// FIXME: currently global varialbles are suggested despite they are shadowed.
// FIXME: currently global variables are suggested despite they are shadowed.
// Ideally they should be suggested with the qualification (i.e. 'ModuleName.globalTest')
// Global_Local-DAG: Decl[LocalVar]/Local: globalTest[#String#]; name=globalTest
// Global_Local-DAG: Decl[GlobalVar]/CurrModule: globalTest[#Int#]; name=globalTest
Expand Down Expand Up @@ -257,7 +257,7 @@ struct test_InheritedMemberProtoExt_Member: ProtoWithIntTestValueExt {
}
}

protocol ClassWitnIntTestValue {
protocol ClassWithIntTestValue {
var testValue: Int { 1 }
}
struct test_InheritedMemberSuper_Member: ClassWithIntTestValue {
Expand Down
Loading