Multi-module diagnostic tests supported

Test added for internal visibility
This commit is contained in:
Andrey Breslav
2014-05-16 14:59:04 +04:00
parent 236f38a26b
commit 9983a567d4
4 changed files with 200 additions and 22 deletions
@@ -0,0 +1,35 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
// MODULE: m1
// FILE: a.kt
package p
public class A {
val a = A()
var v = A()
fun a() = A()
inner class B
}
val a = A()
var v = A()
fun a() = A()
class B
// MODULE: m2(m1)
// FILE: b.kt
import p.*
fun test() {
val _a = <!INVISIBLE_MEMBER!>a<!>
val _v = <!INVISIBLE_MEMBER!>v<!>
<!INVISIBLE_MEMBER!>a<!>()
<!INVISIBLE_MEMBER!>B<!>()
val inst = A()
val ia = inst.<!INVISIBLE_MEMBER!>a<!>
val iv = inst.<!INVISIBLE_MEMBER!>v<!>
inst.<!INVISIBLE_MEMBER!>a<!>()
inst.<!INVISIBLE_MEMBER!>B<!>()
}