mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
Fix for IDEA complains when assigning Kotlin objects where java.lang.Object is expected
#KT-4355 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// KT-4355 IDEA complains when assigning Kotlin objects where java.lang.Object is expected
|
||||
class AssignKotlinClassToObjectInJava {
|
||||
void test(KotlinTrait trait) {
|
||||
Object kotlinClass = new KotlinClass();
|
||||
Object kotlinTrait = trait;
|
||||
|
||||
KotlinClass foo = null;
|
||||
foo.equals(foo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user