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

Compile errors when namespace Foo contains definition for Foo #402

Closed
MatthewBennington opened this issue Oct 23, 2019 · 3 comments
Closed
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@MatthewBennington
Copy link

Sorry is the issue name is unclear. Here's some example code:

module {:extern "Geoff"} Geoff {
  class Geoff {}

  datatype Foo = Foo(g: Geoff)
}

I get errors:

Dafny 2.3.0.10506

Dafny program verifier finished with 0 verified, 0 errors
Errors compiling program into
/var/folders/lv/r2rh11tj1kd68fm_dr38zh_hgg0b20/T/qq0hm8ot.0.cs(1509,27) : error CS0426: The nested type `Geoff' does not exist in the type `Geoff.Geoff'

/var/folders/lv/r2rh11tj1kd68fm_dr38zh_hgg0b20/T/qq0hm8ot.0.cs(1510,18) : error CS0426: The nested type `Geoff' does not exist in the type `Geoff.Geoff'

/var/folders/lv/r2rh11tj1kd68fm_dr38zh_hgg0b20/T/qq0hm8ot.0.cs(1540,32) : error CS0426: The nested type `Geoff' does not exist in the type `Geoff.Geoff'

/var/folders/lv/r2rh11tj1kd68fm_dr38zh_hgg0b20/T/qq0hm8ot.0.cs(1544,14) : error CS0426: The nested type `Geoff' does not exist in the type `Geoff.Geoff'
  • It works fine if I remove {:extern}
  • I'm using Dafny compiled from a155afd
@mschlaipfer
Copy link
Member

Seems to be the same as #259

@mschlaipfer mschlaipfer added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label duplicate labels Oct 24, 2019
@MatthewBennington
Copy link
Author

Yes, that appears to be the same issue.

@acioc
Copy link
Collaborator

acioc commented Jun 22, 2020

Closing as duplicate

@acioc acioc closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

No branches or pull requests

3 participants