File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ static bool isUnappliedFunctionRef(const OverloadChoice &Choice) {
94
94
// We consider curried member calls as unapplied. E.g.
95
95
// MyStruct.someInstanceFunc(theInstance)#^COMPLETE^#
96
96
// is unapplied.
97
- return BaseTy->is <MetatypeType>();
97
+ return BaseTy->is <MetatypeType>() && !Choice. getDeclOrNull ()-> isStatic () ;
98
98
} else {
99
99
return false ;
100
100
}
Original file line number Diff line number Diff line change @@ -42,3 +42,13 @@ func testArg2Name3() {
42
42
// LABELED_FIRSTARG-NOT: ['(']{#arg1: Int#}, {#arg2: Int#}[')'][#Void#];
43
43
// LABELED_FIRSTARG: End completions
44
44
45
+ struct StaticMethods {
46
+ static func before( ) {
47
+ self . after ( num) #^AFTER_STATIC_FUNC^#
48
+ }
49
+ static func after( _ num: Int ) -> ( ( ) -> Int ) { }
50
+ // AFTER_STATIC_FUNC: Begin completions, 2 items
51
+ // AFTER_STATIC_FUNC-DAG: Keyword[self]/CurrNominal: .self[#(() -> Int)#];
52
+ // AFTER_STATIC_FUNC-DAG: Pattern/CurrModule/Flair[ArgLabels]: ()[#Int#];
53
+ // AFTER_STATIC_FUNC: End completions
54
+ }
You can’t perform that action at this time.
0 commit comments