Skip to content

Can't import package beginning with "util" #1583

Closed
@Arthurm1

Description

@Arthurm1

opening a new REPL and trying to import a package with name util.xxx.yyy gives an error...

scala> import util.foo.bar 
<console>:6: error: value foo is not a member of util.type
import util.foo.bar
            ^

The following gives no error even though "util.bar" doesn't exist...

scala> import util.bar 
import util.bar

using the following suggested by @felixmulder works...

import _root_.util.foo.bar

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions