Skip to content

Commit 449537e

Browse files
committed
[test] Add overloaded init array test case
This uncovered some faulty CSRanking logic in one of my refactorings.
1 parent f10992f commit 449537e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Constraints/array_literal.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,10 @@ func testSR8385() {
355355
let _: [SR8385] = ["hello", SR8385.text("world")]
356356
let _: [SR8385] = ["hello", .text("world")]
357357
}
358+
359+
struct TestMultipleOverloadedInits {
360+
var x: Double
361+
func foo() {
362+
let _ = [Float(x), Float(x), Float(x), Float(x)]
363+
}
364+
}

0 commit comments

Comments
 (0)