Fix KNPE in different "Generate members" for expect class
#KT-27595 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
+10
@@ -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)
|
||||
Reference in New Issue
Block a user