Skip to content

Commit 416761f

Browse files
authored
No need to repeat the same test twice
It might be due to a historical reason before bridging works as it does now. There should be no need to repeat the same assertion twice here.
1 parent a61cd12 commit 416761f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/stdlib/DictionaryLiteral.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,5 @@ let anNSString = "Foo" as NSString
4949
var stringNSStringLet: DictionaryLiteral = [ "a": aString as NSString, "b": anNSString]
5050
expectType(DictionaryLiteral<String, NSString>.self, &stringNSStringLet)
5151

52-
var hetero1: DictionaryLiteral = ["a": 1 as NSNumber, "b": "Foo" as NSString]
53-
expectType(DictionaryLiteral<String, NSObject>.self, &hetero1)
54-
55-
var hetero2: DictionaryLiteral = ["a": 1 as NSNumber, "b": "Foo" as NSString]
56-
expectType(DictionaryLiteral<String, NSObject>.self, &hetero2)
52+
var hetero: DictionaryLiteral = ["a": 1 as NSNumber, "b": "Foo" as NSString]
53+
expectType(DictionaryLiteral<String, NSObject>.self, &hetero)

0 commit comments

Comments
 (0)