Skip to content

Commit c6bcd6a

Browse files
committed
ST6RI-72 Restricted 'instanceof' to only return Objects.
1 parent c2fea81 commit c6bcd6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sysml/src/library/BaseFunctions.alf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ package BaseFunctions {
99

1010
function '['(seq: Anything[*], index: Integer): Anything[0..1];
1111

12-
abstract function 'allInstances'(): type[0..*] {
13-
abstract feature type;
12+
abstract function 'allInstances'(): Object[0..*] {
13+
abstract feature type: Object;
1414
}
1515

1616
abstract function 'instanceof'(x: Anything): Boolean {
17-
abstract feature type;
17+
abstract feature type: Anything;
1818
}
1919

2020
abstract function 'hastype'(x: Anything): Boolean {
21-
abstract feature type;
21+
abstract feature type: Anything;
2222
}
2323

2424
}

0 commit comments

Comments
 (0)