Add line marker test for primary constructors #KT-20254 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
// !CHECK_HIGHLIGHTING
|
||||||
|
|
||||||
|
expect annotation class Ann(
|
||||||
|
val x: Int,
|
||||||
|
val y: String
|
||||||
|
)
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
actual annotation class <lineMarker>Ann</lineMarker> actual <lineMarker>constructor</lineMarker>(
|
||||||
|
actual val <lineMarker>x</lineMarker>: Int,
|
||||||
|
actual val <lineMarker>y</lineMarker>: String
|
||||||
|
)
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
// !CHECK_HIGHLIGHTING
|
||||||
|
|
||||||
|
expect class NoConstructor2 {
|
||||||
|
fun extraFun()
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
actual class <lineMarker>NoConstructor2</lineMarker>(name: String) {
|
||||||
|
val myName = name
|
||||||
|
actual fun <lineMarker>extraFun</lineMarker>() {}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
expect annotation class <lineMarker>Ann</lineMarker> <lineMarker>constructor</lineMarker>(
|
||||||
|
val <lineMarker>x</lineMarker>: Int,
|
||||||
|
val <lineMarker>y</lineMarker>: String
|
||||||
|
)
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// !CHECK_HIGHLIGHTING
|
||||||
|
|
||||||
|
actual annotation class Ann actual constructor(
|
||||||
|
actual val x: Int,
|
||||||
|
actual val y: String
|
||||||
|
)
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
expect class <lineMarker>NoConstructor2</lineMarker> {
|
||||||
|
fun <lineMarker>extraFun</lineMarker>()
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// !CHECK_HIGHLIGHTING
|
||||||
|
|
||||||
|
actual class NoConstructor2(name: String) {
|
||||||
|
val myName = name
|
||||||
|
actual fun extraFun() {}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -34,6 +34,14 @@ class MultiModuleLineMarkerTest : AbstractMultiModuleHighlightingTest() {
|
|||||||
|
|
||||||
override fun doTestLineMarkers() = true
|
override fun doTestLineMarkers() = true
|
||||||
|
|
||||||
|
fun testFromActualAnnotation() {
|
||||||
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
|
}
|
||||||
|
|
||||||
|
fun testFromActualPrimaryConstructor() {
|
||||||
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
|
}
|
||||||
|
|
||||||
fun testFromActualSealedClass() {
|
fun testFromActualSealedClass() {
|
||||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
}
|
}
|
||||||
@@ -54,6 +62,14 @@ class MultiModuleLineMarkerTest : AbstractMultiModuleHighlightingTest() {
|
|||||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun testFromExpectedAnnotation() {
|
||||||
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
|
}
|
||||||
|
|
||||||
|
fun testFromExpectedPrimaryConstructor() {
|
||||||
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
|
}
|
||||||
|
|
||||||
fun testFromExpectedSealedClass() {
|
fun testFromExpectedSealedClass() {
|
||||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user