File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1415,3 +1415,23 @@ func testRdar89773376(arry: [Int]) {
1415
1415
// RDAR89773376-DAG: Decl[Constructor]/CurrNominal/Flair[ArgLabels]: ['(']{#intVal: Int#}[')'][#Rdar89773376#];
1416
1416
// RDAR89773376: End completions
1417
1417
}
1418
+
1419
+ struct AmbiguousCallInResultBuilder {
1420
+ @resultBuilder
1421
+ struct MyResultBuilder {
1422
+ static func buildBlock( _ value: Int ) -> Int {
1423
+ return value
1424
+ }
1425
+ }
1426
+
1427
+ func ttroke( _ content: Int , style: String ) -> Int { 41 }
1428
+ func ttroke( _ content: Int , lineWidth: Int = 1 ) -> Int { 42 }
1429
+
1430
+ @MyResultBuilder var body : Int {
1431
+ self . ttroke ( 1 , #^AMBIGUOUS_IN_RESULT_BUILDER? xfail= TODO^#)
1432
+ // AMBIGUOUS_IN_RESULT_BUILDER: Begin completions, 2 items
1433
+ // AMBIGUOUS_IN_RESULT_BUILDER-DAG: Pattern/Local/Flair[ArgLabels]: {#style: String#}[#String#];
1434
+ // AMBIGUOUS_IN_RESULT_BUILDER-DAG: Pattern/Local/Flair[ArgLabels]: {#lineWidth: Int#}[#Int#];
1435
+ // AMBIGUOUS_IN_RESULT_BUILDER: End completions
1436
+ }
1437
+ }
You can’t perform that action at this time.
0 commit comments