Don't suggest "Implement as constructor parameters" in actual class
This applies if expect class has primary constructor declared #KT-27791 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
interface IFoo {
|
||||
val a: Int
|
||||
}
|
||||
|
||||
expect class End : IFoo
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
interface IFoo {
|
||||
val a: Int
|
||||
}
|
||||
|
||||
expect class End : IFoo
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Implement as constructor parameters" "true"
|
||||
// ERROR: Class 'End' is not abstract and does not implement abstract member public abstract val a: Int defined in IFoo
|
||||
|
||||
actual class <caret>End : IFoo
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Implement as constructor parameters" "true"
|
||||
// ERROR: Class 'End' is not abstract and does not implement abstract member public abstract val a: Int defined in IFoo
|
||||
|
||||
actual class End(override val a: Int) : IFoo
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
interface IFoo {
|
||||
val a: Int
|
||||
}
|
||||
|
||||
expect class End(i: Int) : IFoo
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Implement as constructor parameters" "false"
|
||||
// ERROR: Class 'End' is not abstract and does not implement abstract member public abstract val a: Int defined in IFoo
|
||||
// ACTION: Create test
|
||||
// ACTION: Implement members
|
||||
// ACTION: Make 'End' abstract
|
||||
// ACTION: Rename file to End.kt
|
||||
|
||||
actual class <caret>End actual constructor(i: Int) : IFoo
|
||||
Reference in New Issue
Block a user