Name clash test for file class vs multifile class

This commit is contained in:
Dmitry Petrov
2015-09-08 17:57:17 +03:00
parent 0c951b2ed3
commit 5e38c99f81
9 changed files with 38 additions and 7 deletions
@@ -0,0 +1,7 @@
compiler/testData/cli/jvm/fileClassAndMultifileClassClash1.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: package-fragment test, package-fragment test
@file:JvmName("Util")
^
compiler/testData/cli/jvm/fileClassAndMultifileClassClash2.kt:1:1: error: duplicate JVM class name 'test/Util' generated from: package-fragment test, package-fragment test
@file:JvmName("Util")
^
COMPILATION_ERROR