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

Compiler not catching invalid comparison between DateTime and Time #149

Open
abstratt opened this issue Apr 24, 2018 · 0 comments
Open

Compiler not catching invalid comparison between DateTime and Time #149

abstratt opened this issue Apr 24, 2018 · 0 comments

Comments

@abstratt
Copy link
Owner

This generates an error during db-deploy, but not in the editor.

class Reservation
    readonly attribute endTime : Time;
    operation transfer(newOwner : User)
        precondition {
            self.endTime < DateTime#now()
        };

Maybe that makes sense, but how?

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

No branches or pull requests

1 participant