Diagnostic tests for duplicate JVM signatures
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
import kotlin.properties.ReadWriteProperty
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
class C {
|
||||
val `x$delegate`: ReadWriteProperty<Any, Any>? = null
|
||||
val x: String? by Delegates.notNull()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
import kotlin.platform.*
|
||||
|
||||
[platformName("bar")]
|
||||
fun foo(a: Any) {}
|
||||
|
||||
fun Any.foo() {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
import kotlin.platform.*
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>[platformName("bar")]
|
||||
fun foo(a: Any)<!> {}
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun bar(a: Any)<!> {}
|
||||
Reference in New Issue
Block a user