Repoting platform declarations clashes in CLI compiler for JVM

#KT-1 In Progress
This commit is contained in:
Andrey Breslav
2014-05-25 12:42:00 +02:00
parent f4f1dd8f8b
commit 449723e388
6 changed files with 30 additions and 1 deletions
@@ -0,0 +1,4 @@
-src
$TESTDATA_DIR$/signatureClash.kt
-output
$TEMP_DIR$
@@ -0,0 +1,7 @@
class A {
fun getA(): Int = 1
val a: Int = 1
}
fun getB(): Int = 1
val b: Int = 1
@@ -0,0 +1,5 @@
ERROR: $TESTDATA_DIR$/signatureClash.kt: (2, 5) Platform declaration clash: 'getA()I'
ERROR: $TESTDATA_DIR$/signatureClash.kt: (3, 5) Platform declaration clash: 'getA()I'
ERROR: $TESTDATA_DIR$/signatureClash.kt: (6, 1) Platform declaration clash: 'getB()I'
ERROR: $TESTDATA_DIR$/signatureClash.kt: (7, 1) Platform declaration clash: 'getB()I'
COMPILATION_ERROR