Files
swift-mirror/test/SILGen/Inputs/multi_file_helper.swift
Doug Gregor 823c24b355 [SE-0112] Rename ErrorProtocol to Error.
This is bullet (5) of the proposed solution in SE-0112, and the last
major piece to be implemented.
2016-07-12 10:53:52 -07:00

36 lines
572 B
Swift

public struct Range {
public var loc, length: Int
}
extension Range {
// This specifically needs to be in an extension to tickle
// <rdar://problem/16016713>.
public var limit: Int {
return loc + length
}
}
struct LazyContainer {
lazy var lazyVar = 42
}
class LazyContainerClass {
lazy var lazyVar = 42
}
class FinalPropertyClass {
final var foo = 50
var bar = 55
}
final class ObservingPropertyFinalClass {
var foo: Int {
didSet {}
}
init(_ foo: Int) { self.foo = foo }
}
protocol ProtocolWithProperty {
var foo: Int { get set }
}