Introduce Type Alias: Replace type usages in constructor calls. Do not replace usages of existing type aliases

#KT-14685 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-11 19:40:54 +03:00
parent 7a38dfadba
commit 0f58e2eef2
6 changed files with 84 additions and 11 deletions
@@ -0,0 +1,6 @@
// NAME: B
open class A
typealias MyA = A
// SIBLING:
fun fA(p:<selection>A</selection>): MyA = MyA()
fun fB(p:A): A = A()
@@ -0,0 +1,8 @@
// NAME: B
open class A
typealias MyA = B
typealias B = A
// SIBLING:
fun fA(p: B): MyA = MyA()
fun fB(p: B): B = B()