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

issue in datatype/module name conflict #259

Open
gancherj opened this issue Jun 10, 2019 · 0 comments
Open

issue in datatype/module name conflict #259

gancherj opened this issue Jun 10, 2019 · 0 comments
Labels
area: ffi The {:extern} attribute and otherwise interfacing with code in other languages kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: code-generation Support for transpiling Dafny to another language. If relevant, add a `lang:` tag

Comments

@gancherj
Copy link

gancherj commented Jun 10, 2019

module {:extern "M"} M {
    datatype M = M(x : nat)
}

method Main() {
    var M := M.M(3);
}

The above fails to compile (but succeeds in verifying) with error error CS0426: The nested type `M' does not exist in the type `M.M'

If I get rid of the extern, it compiles successfully.

@seanmcl seanmcl added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: code-generation Support for transpiling Dafny to another language. If relevant, add a `lang:` tag labels Jul 1, 2019
@acioc acioc added this to the Dafny 3.0 milestone Aug 5, 2020
@davidcok davidcok added the area: ffi The {:extern} attribute and otherwise interfacing with code in other languages label Dec 3, 2020
@davidcok davidcok modified the milestones: Dafny 3.0, Dafny 3.1 Dec 3, 2020
@atomb atomb removed this from the Dafny 3.1 milestone Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ffi The {:extern} attribute and otherwise interfacing with code in other languages kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: code-generation Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Projects
None yet
Development

No branches or pull requests

5 participants