Skip to content

Checking whether a precondition is strengthening a super-defined precondition seems to be to strict in case of using external contract classes. #54

Description

@timmr

Given the following scenario

  1. Having a SuperClass with external contract class SuperContractClass and methode void method(int a)
  2. TargetClass, a sub class of SuperClass, with external contract TargetContractClass
  3. no if (precondition()) block inside the definition of method method of SuperContractClass
  4. but a if (precondition()) inside the overrided method method in TargetContractClass
  5. setting the configuration variable <default-precondition> to `undefined

` (or omitting it)

Expected behaviour: no "Found strengthening pre-condition" error

Observed behaviour: "Found strengthening pre-condition in method(int)" error is raised

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