Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code compiles even though first sequence block declaration/definition does not match #40

Open
harrison8989 opened this issue Jun 17, 2013 · 0 comments
Labels

Comments

@harrison8989
Copy link
Collaborator

The declarations and the definitions of the sequence blocks of a sequence should match exactly. However, the code will still compile even though the declaration and definition of the first sequence block are different. Here is an example:

Handshake
Endpoint Client;
Endpoint Server;

Sequences {
    HandshakeSeq: Client.start -> Server.hello -> Client.verify -> Server.complete;
}

Sequence HandshakeSeq (Number TLS, Number rand, List(element: Text) cipher, List(element: Text) compress) returns TrueFalse success {

    Client.dontStart {
        //the compiler does not see an error
    }

    Server.hello {

    }

    Client.verify {

    }

    Server.complete {

    }
}

Client
{
    //code
}

Server
{
    //code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant