Fix KNPE in different "Generate members" for expect class

#KT-27595 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-11-08 12:32:53 +03:00
parent 38c3f13b12
commit cb28387da4
12 changed files with 62 additions and 5 deletions
@@ -0,0 +1,9 @@
// "Generate 'hashCode()'" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.EqualsOrHashCodeInspection
expect class With<caret>Constructor(x: Int, s: String) {
val x: Int
val s: String
override fun equals(other: Any?): Boolean
}
@@ -0,0 +1,10 @@
// "Generate 'hashCode()'" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.EqualsOrHashCodeInspection
expect class With<caret>Constructor(x: Int, s: String) {
val x: Int
val s: String
override fun equals(other: Any?): Boolean
override fun hashCode(): Int
}
@@ -0,0 +1 @@
actual class WithConstructor(actual val x: Int, actual val s: String)
@@ -0,0 +1 @@
actual class WithConstructor(actual val x: Int, actual val s: String)