Update duplicate diagnostic

This commit is contained in:
Michael Bogdanov
2015-06-30 17:59:28 +03:00
parent d524cdeef7
commit 35d51a8ea4
13 changed files with 90 additions and 18 deletions
+3
View File
@@ -0,0 +1,3 @@
$TESTDATA_DIR$/classAndFacadeClash.kt
-d
$TEMP_DIR$
+10
View File
@@ -0,0 +1,10 @@
package test
class TestPackage {
}
fun z () {
}
+4
View File
@@ -0,0 +1,4 @@
compiler/testData/cli/jvm/classAndFacadeClash.kt:3:1: error: duplicate JVM class name 'test/TestPackage' generated from: package-fragment test, TestPackage
class TestPackage {
^
COMPILATION_ERROR
+3
View File
@@ -0,0 +1,3 @@
$TESTDATA_DIR$/classAndPartClash.kt
-d
$TEMP_DIR$
+13
View File
@@ -0,0 +1,13 @@
package test
class ClassAndPartClash {
}
class ClassAndPartClash_ {
}
fun z () {
}
+7
View File
@@ -0,0 +1,7 @@
compiler/testData/cli/jvm/classAndPartClash.kt:1:1: error: duplicate JVM class name 'test/ClassAndPartClash_' generated from: package-fragment test, ClassAndPartClash_
package test
^
compiler/testData/cli/jvm/classAndPartClash.kt:7:1: error: duplicate JVM class name 'test/ClassAndPartClash_' generated from: package-fragment test, ClassAndPartClash_
class ClassAndPartClash_ {
^
COMPILATION_ERROR
+3
View File
@@ -0,0 +1,3 @@
$TESTDATA_DIR$/classAndTraitClash.kt
-d
$TEMP_DIR$
+9
View File
@@ -0,0 +1,9 @@
package test
interface T1 {
}
class `T1$$TImpl` {
}
+7
View File
@@ -0,0 +1,7 @@
compiler/testData/cli/jvm/classAndTraitClash.kt:3:1: error: duplicate JVM class name 'test/T1$$TImpl' generated from: `T1$$TImpl`, T1
interface T1 {
^
compiler/testData/cli/jvm/classAndTraitClash.kt:7:1: error: duplicate JVM class name 'test/T1$$TImpl' generated from: `T1$$TImpl`, T1
class `T1$$TImpl` {
^
COMPILATION_ERROR