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

Invalid scope of variables and package qualifiers #693

Open
ArquintL opened this issue Oct 25, 2023 · 0 comments
Open

Invalid scope of variables and package qualifiers #693

ArquintL opened this issue Oct 25, 2023 · 0 comments
Labels
bug Something isn't working type checking

Comments

@ArquintL
Copy link
Member

The following program results in an illegal state exception "Cycle detected in attribute evaluation 'store' at pkg.T" because (presumably) the parameter pkg is not correctly treated as being distinct from the qualifier pkg for the imported package.

000693.gobra:

package issue000693

// ##(-I ./000693/)
import pkg "pkg"

func foo(pkg pkg.T) {
    pkg.bar()
}

000693/pkg/pkg.gobra:

package pkg

type T struct{}

func (t *T)bar()
@ArquintL ArquintL added bug Something isn't working type checking labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working type checking
Projects
None yet
Development

No branches or pull requests

1 participant