Fix incremental compilation problems related to type alias constructors

1. Determine source element for descriptors with NO_SOURCE recursively.

2. Always provide type abbreviation for type alias constructor
return type.

 #KT-15495 Fixed
This commit is contained in:
Dmitry Petrov
2017-05-17 13:02:18 +03:00
parent 2500a182e5
commit a2db4dc0d5
21 changed files with 97 additions and 30 deletions
+2 -3
View File
@@ -57,9 +57,8 @@ FILE /kt16905.kt
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
TYPEALIAS typealias OI = Outer.Inner type=Outer.Inner
FUN public fun test(): Outer.Inner
FUN public fun test(): OI /* = Outer.Inner */
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(): Outer.Inner'
RETURN type=kotlin.Nothing from='test(): OI /* = Outer.Inner */'
CALL 'constructor Inner()' type=Outer.Inner origin=null
$this: CALL 'constructor Outer()' type=Outer origin=null