aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2610.scala
blob: 8a82b4a72f871abb69771cc965a954ae32ebea95 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                          
package mada; package defects; package tests

package object bbb {
    def bar = ()
    aaa.foo // value foo is not a member of package mada.defects.tests.aaa
}

package object aaa {
    def foo = ()
}

/* compiles successfully if placed here..
package object bbb {
    def bar = ()
    aaa.foo // value foo is not a member of package mada.defects.tests.aaa
}
*/