Add tests for KT-26141 (yet without changes)

This commit is contained in:
Mikhail Glukhikh
2018-09-04 16:04:24 +03:00
parent 68e3821ae2
commit 56d89266d4
9 changed files with 164 additions and 0 deletions
@@ -0,0 +1,6 @@
package p
expect sealed class Presence {
object Online: Presence
object Offline: Presence
}
@@ -0,0 +1,8 @@
// !CHECK_HIGHLIGHTING
package p
actual typealias Presence = P
sealed class P {
object Online : P()
object Offline : P()
}
@@ -124,6 +124,11 @@ public class MultiPlatformHighlightingTestGenerated extends AbstractMultiPlatfor
runTest("idea/testData/multiModuleHighlighting/multiplatform/platformTypeAliasInterchangebleWithAliasedClass/");
}
@TestMetadata("sealedTypeAlias")
public void testSealedTypeAlias() throws Exception {
runTest("idea/testData/multiModuleHighlighting/multiplatform/sealedTypeAlias/");
}
@TestMetadata("suppressHeaderWithoutImpl")
public void testSuppressHeaderWithoutImpl() throws Exception {
runTest("idea/testData/multiModuleHighlighting/multiplatform/suppressHeaderWithoutImpl/");