Possible regression.
Importing with the new import syntax in scripts has some issues.
Here's a code example to reproduce:
import "Bar"
pub fun main(a: Int, b: Int): String {
return Bar.X
}
The output looks like:
![Screenshot 2023-04-18 at 14 19 35](https://user-images.githubusercontent.com/75445744/232775565-ebffe2b6-8f55-4dac-9c19-b7908ecf77dd.png)
And the error is:
checking of imported "pub" program failed
.