Diagnostic tests for duplicate JVM signatures

This commit is contained in:
Andrey Breslav
2014-05-25 18:14:34 +02:00
parent d25b2459d4
commit 27e61a75a1
47 changed files with 622 additions and 41 deletions
@@ -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() {}
@@ -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)<!> {}