blob: 9a9ab77acae1d388e636657d9224f8a37aee64d8 [file] [log] [blame]
// RUN: true
struct FishAndChips {
var costPounds: Float
var costEuros: Float {
get {
return costPounds * 0.77
}
set {
costPounds = newValue / 0.77
}
}
var costDollars: Float {
get {
return costPounds * 0.92
}
nonmutating set {}
}
}
final class Beer {
var abv: Int {
get { return 7 }
set { }
}
}
class LazyCat {
lazy var purrs: Int = 10
}