/usercode/main.swift:4:27: error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional static var allTests = ["testA", testA] ^~~~~~~~~~~~~~~~ as [Any] /usercode/main.swift:6:10: error: cannot invoke 'testCase' with an argument list of type '([Any])' XCTMain([testCase(Test.allTests)]) ^ /usercode/main.swift:6:10: note: overloads for 'testCase' exist with these partially matching parameter lists: ([(String, (T) -> () throws -> Void)]), ([(String, (T) -> () -> Void)]) XCTMain([testCase(Test.allTests)]) ^