KT-5854 Incorrect 'Nested class should be qualified'

#KT-5854 Fixed
This commit is contained in:
Svetlana Isakova
2014-10-03 17:02:16 +04:00
parent 29fa87ee7c
commit b20327770b
5 changed files with 86 additions and 17 deletions
@@ -0,0 +1,11 @@
//KT-5854 Incorrect 'Nested class should be qualified'
class A {
class Nested {
}
fun foo() {
Nested(<!TOO_MANY_ARGUMENTS!>1<!>) //two errors here, the first one is wrong
}
}
@@ -0,0 +1,16 @@
package
internal final class A {
public constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
internal final fun foo(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
internal final class Nested {
public constructor Nested()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}