Properly check whether nullability of receiver argument fits to parameter's nullability

It's should behave like we check isSubtype(receiverType, parameterType) + use nullability info from smart cast

 #KT-1090 Fixed
This commit is contained in:
Denis Zharkov
2015-08-26 11:29:18 +03:00
parent 70d4a7997e
commit aad977d204
13 changed files with 267 additions and 10 deletions
@@ -0,0 +1,10 @@
package
internal final class A</*0*/ T : kotlin.CharSequence?, /*1*/ E1 : T, /*2*/ E2 : T?> {
public constructor A</*0*/ T : kotlin.CharSequence?, /*1*/ E1 : T, /*2*/ E2 : T?>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
internal final fun foo(/*0*/ x: E1, /*1*/ y: E2): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
internal final fun T.bar(): kotlin.Unit
}