Add test for KT-49200 deprecation

This commit is contained in:
Mikhail Glukhikh
2022-06-09 11:07:48 +02:00
committed by Space
parent a2e8ed0032
commit 088f472117
7 changed files with 117 additions and 0 deletions
@@ -0,0 +1,28 @@
// KT-49200
// FILE: first/KtNodeTypes.java
package first;
public interface KtNodeTypes {
String SOME = "Some";
}
// FILE: SomeEnum.kt
package second
enum class SomeEnum {
SOME;
}
// FILE: test.kt
import first.KtNodeTypes.*
import second.SomeEnum.*
fun test(arg: String): Boolean {
return when (arg) {
SOME -> true
else -> false
}
}