Files
swift-mirror/test/Serialization/inherited-conformance.swift
Jordan Rose 65bd8536bc [serialization] Look for underlying conformances in refined protocol adopters.
That is, if we need a type MyIndex<T> to be a valid ForwardIndex, we should
be able to find it in the conformance for BidirectionalIndex, which inherits
from ForwardIndex.

<rdar://problem/15484898>

Swift SVN r11270
2013-12-13 21:42:51 +00:00

11 lines
354 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %swift -emit-module -o %t -module-name Base %S/Inputs/inherited-conformance-base.swift
// RUN: %swift -emit-module -o %t -module-name User -I %t %S/Inputs/inherited-conformance-user.swift
// RUN: %swift -parse -I %t %s
import User
var test = User.OneToAThousand()
println(test.__getitem__(test.startIndex()))