File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
1015
1015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
1016
1016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
1017
1017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018
- refs/heads/rxwei-patch-1: dcabcb36b4189a87ed4924b1669a51ebc86ce283
1018
+ refs/heads/rxwei-patch-1: 28722107352981c0472723a5ec26afafcdd7b54c
1019
1019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
1020
1020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
1021
1021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9
Original file line number Diff line number Diff line change @@ -1457,9 +1457,8 @@ protocolForLiteralKind(CodeCompletionLiteralKind kind) {
1457
1457
// / that is of type () -> ().
1458
1458
static bool hasTrivialTrailingClosure (const FuncDecl *FD,
1459
1459
AnyFunctionType *funcType) {
1460
- SmallBitVector defaultMap =
1461
- computeDefaultMap (funcType->getParams (), FD,
1462
- /* level*/ FD->isInstanceMember () ? 1 : 0 );
1460
+ auto defaultMap = computeDefaultMap (funcType->getParams (), FD,
1461
+ /* skipCurriedSelf*/ FD->hasCurriedSelf ());
1463
1462
1464
1463
if (defaultMap.size () - defaultMap.count () == 1 ) {
1465
1464
auto param = funcType->getParams ().back ();
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ func test1() {
56
56
struct S {
57
57
func method1( _: ( ) -> ( ) ) { }
58
58
static func method2( _: ( ) -> ( ) ) { }
59
+ static func method3( _ a: Int = 0 , _: ( ) -> ( ) ) { }
59
60
func nonTrivial1( _: ( Int ) -> ( ) ) { }
60
61
func nonTrivial2( _: @autoclosure ( ) -> ( ) ) { }
61
62
func test2( ) {
@@ -81,6 +82,7 @@ func test5() {
81
82
}
82
83
// STATIC_METHOD_1-NOT: {|}
83
84
// STATIC_METHOD_1: Decl[StaticMethod]/CurrNominal: method2 {|}[#Void#]
85
+ // STATIC_METHOD_1: Decl[StaticMethod]/CurrNominal: method3 {|}[#Void#]
84
86
// STATIC_METHOD_1-NOT: {|}
85
87
86
88
class C {
You can’t perform that action at this time.
0 commit comments