Repoting platform declarations clashes in CLI compiler for JVM
#KT-1 In Progress
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user