summaryrefslogtreecommitdiff
path: root/src/cli/runtime/MapEntry.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-08-05 15:31:36 +0000
committerRich Hickey <richhickey@gmail.com>2006-08-05 15:31:36 +0000
commitda11eb9d0dd587e532470965b3c655b741d1fa5c (patch)
tree12ca5ed1b29b2f29caebc3cb3fba09d72af23bd8 /src/cli/runtime/MapEntry.cs
parentdb58898d1d44d8025208bb5f0b2c4a493a5cdb43 (diff)
changed return type of assoc to Associative
Diffstat (limited to 'src/cli/runtime/MapEntry.cs')
-rw-r--r--src/cli/runtime/MapEntry.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/runtime/MapEntry.cs b/src/cli/runtime/MapEntry.cs
index 13051107..606336d3 100644
--- a/src/cli/runtime/MapEntry.cs
+++ b/src/cli/runtime/MapEntry.cs
@@ -38,7 +38,7 @@ override public IMapEntry find(Object key) {
return RT.equal(_key, key)?this:null;
}
-override public IPersistentMap assoc(Object key, Object val) {
+override public Associative assoc(Object key, Object val) {
if(RT.equal(_key, key))
{
if(_val == val)
@@ -55,7 +55,7 @@ override public Object get(Object key) {
override public IPersistentMap assocEx(Object key, Object val) {
if(RT.equal(_key, key))
throw new Exception("Key already present");
- return assoc(key, val);
+ return (IPersistentMap)assoc(key, val);
}
override public IPersistentMap without(Object key) {