diff options
Diffstat (limited to 'swift/test/Ice/proxy/TestI.swift')
-rw-r--r-- | swift/test/Ice/proxy/TestI.swift | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/swift/test/Ice/proxy/TestI.swift b/swift/test/Ice/proxy/TestI.swift index 6921d88b3f7..3a8e6a388ed 100644 --- a/swift/test/Ice/proxy/TestI.swift +++ b/swift/test/Ice/proxy/TestI.swift @@ -3,7 +3,7 @@ // import Ice -class MyDerivedClassI: MyDerivedClass { +final class MyDerivedClassI: MyDerivedClass, Object { var _ctx: [String: String] init() { @@ -25,8 +25,22 @@ class MyDerivedClassI: MyDerivedClass { return _ctx } - func ice_isA(s: String, current: Ice.Current) throws -> Bool { + func ice_isA(s: String, current: Ice.Current) -> Bool { + _ctx = current.ctx + return MyDerivedClassDisp.staticIds.contains(s) + } + + func ice_id(current: Ice.Current) -> String { + _ctx = current.ctx + return MyDerivedClassDisp.staticId + } + + func ice_ids(current: Ice.Current) -> [String] { + _ctx = current.ctx + return MyDerivedClassDisp.staticIds + } + + func ice_ping(current: Current) { _ctx = current.ctx - return try ice_ids(current: current).contains(s) } } |