Skip to content

Commit

Permalink
cloneReadOnly should return readonly value
Browse files Browse the repository at this point in the history
Fixes #531
  • Loading branch information
jclark committed Jul 15, 2020
1 parent 86f9777 commit 17d054b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/lib/value.bal
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function clone(CloneableType v) returns CloneableType = external;
#
# + v - source value
# + return - immutable clone of `v`
public function cloneReadOnly(CloneableType v) returns CloneableType = external;
public function cloneReadOnly(CloneableType v) returns CloneableType & readonly = external;

# Constructs a value with a specified type by cloning another value.
# + v - the value to be cloned
Expand Down

0 comments on commit 17d054b

Please sign in to comment.