We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The @contract + @inv for design by contract with K3 cannot be used with the @aspect annotations.
this simple example (on top of ecore )
package hello_ecore import org.eclipse.emf.ecore.EPackage import fr.inria.diverse.k3.al.annotationprocessor.Aspect import static extension hello_ecore.EPackageAspect.* import fr.inria.diverse.k3.al.annotationprocessor.Contracted import fr.inria.diverse.k3.al.annotationprocessor.Inv @Aspect(className=EPackage) @Contracted class EPackageAspect { // @Inv def boolean noPackageInName(){ // return _self.name.nullOrEmpty || !_self.name.contains("Package") // } @Inv def boolean inv() { true } }
raises the following error :
Invariant methods cannot declare any parameter
The same error occurs with pre and post conditions
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The @contract + @inv for design by contract with K3 cannot be used with the @aspect annotations.
this simple example (on top of ecore )
raises the following error :
The same error occurs with pre and post conditions
The text was updated successfully, but these errors were encountered: