Skip to content

Commit 8607485

Browse files
committed
81090: Swift/Island: can't look a dictionary as tuple
1 parent ad28eae commit 8607485

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/Dictionary.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,15 @@ public extension Swift.Dictionary : ISequence<(Key,Value)> {
358358
#endif
359359

360360
#if ECHOES
361-
func GetEnumerator() -> System.Collections.IEnumerator! {
361+
@Implements(typeOf(IEnumerable), "GetEnumerator")
362+
func GetEnumeratorNG() -> System.Collections.IEnumerator! {
362363
for entry in dictionary {
363364
var item: (Key, Value) = (entry.Key, entry.Value)
364365
__yield item
365366
}
366367
}
367368

368-
@Implements(typeOf(IEnumerable<(Key,Value)>), "GetEnumerator")
369-
func GetEnumeratorT() -> IEnumerator<(Key,Value)>! {
369+
func GetEnumerator() -> IEnumerator<(Key,Value)>! {
370370
for entry in dictionary {
371371
var item: (Key, Value) = (entry.Key, entry.Value)
372372
__yield item
@@ -376,15 +376,15 @@ public extension Swift.Dictionary : ISequence<(Key,Value)> {
376376

377377
#if ISLAND
378378

379-
func GetEnumerator() -> IEnumerator! {
379+
@Implements(typeOf(IEnumerable), "GetEnumerator")
380+
func GetEnumeratorNG() -> IEnumerator! {
380381
for entry in dictionary {
381382
var item: (Key, Value) = (entry.Key, entry.Value)
382383
__yield item
383384
}
384385
}
385386

386-
@Implements(typeOf(IEnumerable<(Key,Value)>), "GetEnumerator")
387-
func GetEnumeratorT() -> IEnumerator<(Key,Value)>! {
387+
func GetEnumerator() -> IEnumerator<(Key,Value)>! {
388388
for entry in dictionary {
389389
var item: (Key, Value) = (entry.Key, entry.Value)
390390
__yield item

0 commit comments

Comments
 (0)