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

Cannot extract newtype information #3536

Open
MikaelMayer opened this issue Feb 14, 2023 · 0 comments
Open

Cannot extract newtype information #3536

MikaelMayer opened this issue Feb 14, 2023 · 0 comments
Labels
during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)

Comments

@MikaelMayer
Copy link
Member

Dafny version

3.11.0

Code to produce this issue

newtype Time = nat

datatype LogEntry = LogEntry(time: Time)

lemma TimeIsGreaterThanZero<T>(entry: LogEntry) {
  assert 0 <= entry.time;
}

Command to run and resulting output

Run in VSCode

What happened?

image

I did not find a way to express that the newtype is greater than zero.

What type of operating system are you experiencing the problem on?

Windows

@MikaelMayer MikaelMayer added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Feb 14, 2023
@alex-chew alex-chew added the part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) label Feb 17, 2023
@keyboardDrummer keyboardDrummer added the during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)
Projects
None yet
Development

No branches or pull requests

3 participants