Skip to content

Commit

Permalink
comparison operands should be null safe #163
Browse files Browse the repository at this point in the history
  • Loading branch information
abstratt committed Oct 1, 2019
1 parent 3f22498 commit 6d9e9c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/com.abstratt.mdd.core/models/libraries/mdd_types.tuml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ end;

(* The implicit super datatype for all datatypes *)
datatype Value
query notEquals(other : Value[1]) : Boolean;
query notEquals(other : Value[0,1]) : Boolean;
query greaterThan(r : Value[1]) : Boolean;
query lowerThan(r : Value[1]) : Boolean;
query greaterOrEquals(r : Value[1]) : Boolean;
query lowerOrEquals(r : Value[1]) : Boolean;
query equals(other : Value[1]) : Boolean;
query equals(other : Value[0,1]) : Boolean;
query toString() : String;
end;

Expand All @@ -54,8 +54,8 @@ class ComparableBasic specializes Basic
query lowerThan(r : any[1]) : Boolean;
query greaterOrEquals(r : any[1]) : Boolean;
query lowerOrEquals(r : any[1]) : Boolean;
query notEquals(other : any[1]) : Boolean;
query equals(other : any[1]) : Boolean;
query notEquals(other : any[0,1]) : Boolean;
query equals(other : any[0,1]) : Boolean;
end;

class Primitive specializes ComparableBasic
Expand Down

0 comments on commit 6d9e9c3

Please sign in to comment.