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
|
||||
Reference in New Issue
Block a user