gobra icon indicating copy to clipboard operation
gobra copied to clipboard

Invalid scope of variables and package qualifiers

Open ArquintL opened this issue 2 years ago • 0 comments

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 avatar Oct 25 '23 18:10 ArquintL