KT-5214 Annotation to provide platform name to avoid signature conflict
#KT-5214 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import kotlin.platform.*
|
||||
|
||||
[platformName("bar")]
|
||||
fun foo() = "foo"
|
||||
|
||||
fun box(): String {
|
||||
val f = foo()
|
||||
if (f != "foo") return "Fail: $f"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user