Add line marker test for type aliases #KT-20164 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// !CHECK_HIGHLIGHTING
|
||||
|
||||
expect class TypeAlias {
|
||||
val x: String
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class Some {
|
||||
val x: String = "Some"
|
||||
}
|
||||
|
||||
actual typealias <lineMarker>TypeAlias</lineMarker> = Some
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
expect class <lineMarker>TypeAlias</lineMarker> {
|
||||
val x: String
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// !CHECK_HIGHLIGHTING
|
||||
|
||||
class Some {
|
||||
val x: String = "Some"
|
||||
}
|
||||
|
||||
actual typealias TypeAlias = Some
|
||||
|
||||
@@ -50,6 +50,10 @@ class MultiModuleLineMarkerTest : AbstractMultiModuleHighlightingTest() {
|
||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||
}
|
||||
|
||||
fun testFromActualTypeAlias() {
|
||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||
}
|
||||
|
||||
fun testFromClassToAlias() {
|
||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||
}
|
||||
@@ -78,6 +82,10 @@ class MultiModuleLineMarkerTest : AbstractMultiModuleHighlightingTest() {
|
||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||
}
|
||||
|
||||
fun testFromExpectedTypeAlias() {
|
||||
doMultiPlatformTest(TargetPlatformKind.Jvm[JvmTarget.JVM_1_6])
|
||||
}
|
||||
|
||||
fun testKotlinTestAnnotations() {
|
||||
doMultiPlatformTest(TargetPlatformKind.JavaScript,
|
||||
configureModule = { module, _ ->
|
||||
|
||||
Reference in New Issue
Block a user