Hi all,
I am trying out the export clause in Scala 3 (v3.2.2). Here it is mentioned that we can uses _ to omit a particular member from exported and it will not be accessible by further wildcard exports. But I am still able to access it. What am I doing wrong here?
class Foo {
def test = "hello"
def test2 = "hello 2"
}
class Bar {
private val foo = new Foo
export foo.test2 as _
export foo.*
}
class FooBar {
val bar = new Bar
bar.test
bar.test2 //this should not compile?
}