# MODULE-059: selected function does not import siblings
let $module_fixture = $args[0]
printf "%s" ("pub let \$value: Integer = 7\npub fn ping(\$x) { echo \"ping\" \$x \$value }\npub fn next() { \$value = \$value + 1; \$value }\npub struct Point { x: Integer }\npub enum State { On, Off }\npub fn Point::twice(): Integer { \$self.x * 2 }\n".replace "<FIXTURE>" $args[0]) -> "${module_fixture}/foo.shy"
check [
"id": "MODULE-059",
"name": "selected function does not import siblings",
"source": "import foo::{ ping }; echo \$value",
"mode": "file",
"args": [],
"stdout": "",
"status": 1,
"valid": false,
"error": "(?:Variable .*not found|Variable not found for SetVariable)",
"stderr_contains": [],
"stderr_excludes": [],
"stdout_excludes": []]