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:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user