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:
Mikhail Glukhikh
2018-11-06 14:34:07 +03:00
parent 63856cff1b
commit fcfeb33501
8 changed files with 54 additions and 3 deletions
@@ -0,0 +1,5 @@
interface IFoo {
val a: Int
}
expect class End : IFoo
@@ -0,0 +1,5 @@
interface IFoo {
val a: Int
}
expect class End : IFoo
@@ -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
@@ -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