Added test for case when type from overridden method has same short name as something already present.

#KT-1602 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-05-02 19:42:50 +04:00
parent 2fcc7b0cbb
commit 33f9a391a5
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,9 @@
//KT-1602
package lib
public class Array {
}
public trait ArrayFactory {
fun create() : Array
}
@@ -0,0 +1,6 @@
//KT-1602
import lib.ArrayFactory
public class Impl : ArrayFactory {
<caret>
}
@@ -0,0 +1,9 @@
//KT-1602
import lib.ArrayFactory
public class Impl : ArrayFactory {
override fun create() : lib.Array {
throw UnsupportedOperationException()
}
}