oxfeeefeee/goscript

Dot import does not work

nyxkrage opened this issue · 1 comments

The Dot import syntax brings the entire package into the current namespace. So, you don’t have to call the functions using the package name. You can directly call them.

Reproduction code

package main

import (
  . "fmt2"
)

func main() {
  Println("Hello, World!")
}

Expected Results

That it would print out "Hello, World!"

Actual Results

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', ...goscript/codegen/src/package.rs:47:60

Fixed: 53df963

Thanks for helping!