Files
swift-mirror/test/SILGen/Inputs/weak_other.swift
2017-02-03 16:22:48 -08:00

24 lines
369 B
Swift

public struct Flags {
public func asBoolean() -> Bool { return true }
}
public protocol Router : class {
}
extension Router {
public var flags: Flags { return Flags() }
}
public protocol Environment : class {
unowned var router: Router { get }
}
open class UI {
open unowned let environment: Environment
init(e: Environment) {
environment = e
}
}