Report 'nested class accessed via instance reference' error

This commit is contained in:
Svetlana Isakova
2014-08-01 14:02:27 +04:00
parent d150a26f8a
commit 7f33ad90a6
28 changed files with 224 additions and 41 deletions
@@ -6,5 +6,5 @@ object A {
fun test<T>(a: T) {
val c = (a as A)
c.<error descr="[FUNCTION_EXPECTED] Expression 'B' of type '[Package-type B]' cannot be invoked as a function. The function invoke() is not found"><error>B</error></error>()
c.<error descr="[NESTED_CLASS_ACCESSED_VIA_INSTANCE_REFERENCE] Nested class 'B' accessed via instance reference">B</error>()
}