ansman
01/23/2018, 10:22 PMinternal
class from a unit test in the same module. Android Studio shows no issues but when I try to compile I just get Cannot access 'XXX': it is internal in 'YYY'
. This is using Kotlin 1.2.20ansman
01/23/2018, 11:06 PMinternal object Foo {
const val foo = "foo"
}
class TestFoo {
@Test
fun testFoo() {
assertEquals("foo", Foo.foo)
}
}
ansman
01/23/2018, 11:07 PMTestFoo.kt: (10, 29): Cannot access 'Foo': it is internal in 'com.example'