Skip to content

Commit 4e6c48a

Browse files
committed
fix: add an Any datatype for compat. with earlier version of IRIS
1 parent 34472a3 commit 4e6c48a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/cls/IPM/DataType/Any.cls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// This is eqivalent to the %Library.Any, which seems to be unavailable in earlier version of IRIS
2+
Class %IPM.DataType.Any [ ClassType = "", System = 1 ]
3+
{
4+
5+
}

src/cls/IPM/General/InstallTimeConfig.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Method Load(path As %String)
3131
}
3232

3333
/// Get the specified argument for the specified package
34-
Method GetArg(package As %String, args... As %String) As %Any
34+
Method GetArg(package As %String, args... As %String) As %IPM.DataType.Any
3535
{
3636
Set obj = ..Config.%Get(package)
3737

tests/unit_tests/Test/PM/Unit/MergeJSON.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ Method TestMergeDynamicObjects()
8585
}
8686
}
8787

88-
ClassMethod Equal(j1 As %Any, j2 As %Any) As %Boolean
88+
ClassMethod Equal(j1 As %IPM.DataType.Any, j2 As %IPM.DataType.Any) As %Boolean
8989
{
9090
Quit ..IsSubset(j1, j2) && ..IsSubset(j2, j1)
9191
}
9292

93-
ClassMethod IsSubset(j1 As %Any, j2 As %Any) As %Boolean
93+
ClassMethod IsSubset(j1 As %IPM.DataType.Any, j2 As %IPM.DataType.Any) As %Boolean
9494
{
9595
If j1 = j2 {
9696
Return 1

0 commit comments

Comments
 (0)