Skip to content

Commit

Permalink
Improve layout / style
Browse files Browse the repository at this point in the history
Ref. #907
  • Loading branch information
senier committed Jul 12, 2022
1 parent d27399f commit 3e7568b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions doc/Language-Reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1618,9 +1618,9 @@ A xref:syntax-case_expression[case expression] selects one of several alternativ

*Static Semantics*

The type of all the dependent_xref:syntax-expression[expression]s shall be compatible to the type of the xref:syntax-case_expression[case_expression].
Each value of the type of the selecting_xref:syntax-expression[expression] shall be covered by a xref:syntax-discrete_choice[discrete_choice].
Two distinct xref:syntax-discrete_choice[discrete_choices] of a xref:syntax-case_expression[case_expression] shall not cover the same value.
The type of all the dependent xref:syntax-expression[expression]s shall be compatible to the type of the xref:syntax-case_expression[case expression].
Each value of the type of the selecting xref:syntax-expression[expression] shall be covered by a xref:syntax-discrete_choice[discrete choice].
Two distinct xref:syntax-discrete_choice[discrete choices] of a xref:syntax-case_expression[case expression] shall not cover the same value.

*Example*

Expand Down
14 changes: 7 additions & 7 deletions tests/integration/session_case_expression_aggregate/test.rflx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ package Test is
Length => 1,
Value => -- §S-E-CE
(case Recv_Type is
when Universal::MT_Null | Universal::MT_Data => 2,
when Universal::MT_Value => 8,
when Universal::MT_Values => 16,
when Universal::MT_Option_Types => 32,
when Universal::MT_Options => 64,
when Universal::MT_Unconstrained_Data => 128,
when Universal::MT_Unconstrained_Options => 256));
when Universal::MT_Null | Universal::MT_Data => 2,
when Universal::MT_Value => 8,
when Universal::MT_Values => 16,
when Universal::MT_Option_Types => 32,
when Universal::MT_Options => 64,
when Universal::MT_Unconstrained_Data => 128,
when Universal::MT_Unconstrained_Options => 256));
transition
goto Reply -- §S-S-T-N
exception
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/session_case_expression_numeric/test.rflx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ package Test is
Value : Tiny_Int;
begin
Value := (case Message.Value is -- §S-E-CE
when 1 | 2 => 4,
when 3 => 1,
when 4 => 2);
when 1 | 2 => 4,
when 3 => 1,
when 4 => 2);
-- §S-S-A-A-MA
Message := Message'(Value => Value);
transition
Expand Down

0 comments on commit 3e7568b

Please sign in to comment.