mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
345 B
Swift
14 lines
345 B
Swift
// RUN: not %target-swift-frontend %s -typecheck
|
|
|
|
protocol ProtocolWithCount: Collection {
|
|
var count : UInt64 { get }
|
|
}
|
|
|
|
class ClassWithoutCount : ProtocolWithCount {
|
|
// var count: UInt64 = 0
|
|
var startIndex: UInt64 { get { return 0 }}
|
|
var endIndex: UInt64 { get { return 0 }}
|
|
subscript(i:UInt64) -> Int64 { get {return 0}}
|
|
}
|
|
|