Skip to content

[Simplify] datatype 선언문 위치가 바뀌어서 출력되는 현상 수정 #9

Description

@yeonhee-ryou
  1. 순서가 바뀌는 경우
  • 입력:
datatype D = A | B | ghost C
method m(d: D) returns (r: bool) {
  r := match d {
   case A =>true
   case B =>true
   case C =>true
  };
}
  • 출력:
method m(d: D) returns (r: bool)
{
  r := match d { case A => true case B => true case C => true };
}

datatype D = A | B | ghost C
  1. 순서가 유지되는 경우
  • 입력:
method m(d: D) returns (r: bool) {
  r := match d {
   case A =>true
   case B =>true
   case C =>true
  };
}
datatype D = A | B | ghost C
  • 출력: 동일

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions