[Compatibility] Restore old TargetPlatform and subtypes for compatibility

This commit is contained in:
Dmitry Savvinov
2019-05-14 12:52:22 +03:00
parent bbe7a9790e
commit 2caa1c3dd6
11 changed files with 202 additions and 7 deletions
@@ -0,0 +1,15 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.resolve
@Deprecated(
message = "This class is deprecated and will be removed soon, use API from 'org.jetbrains.kotlin.platform.*' packages instead",
replaceWith = ReplaceWith("TargetPlatform", "org.jetbrains.kotlin.platform.TargetPlatform"),
level = DeprecationLevel.ERROR
)
interface TargetPlatform {
val platformName: String
}