Substitute underlying constructor when substituting type alias constructor

KT-17426 Constructor call of typealiased class gets suspicious type arguemnts
This commit is contained in:
Dmitry Petrov
2017-04-19 19:25:27 +03:00
parent 02fec6e4a5
commit a3985bbdd3
5 changed files with 88 additions and 28 deletions
@@ -18,14 +18,12 @@ FILE /delegatingConstructorCallToTypeAliasConstructor.kt
CLASS CLASS C1
CONSTRUCTOR public constructor C1()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(T)'
value: TYPE_OP type=T origin=IMPLICIT_CAST typeOperand=T
CONST String type=kotlin.String value='O'
DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(String)'
value: CONST String type=kotlin.String value='O'
INSTANCE_INITIALIZER_CALL classDescriptor='C1'
CLASS CLASS C2
CONSTRUCTOR public constructor C2()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(T)'
value: TYPE_OP type=T origin=IMPLICIT_CAST typeOperand=T
CONST String type=kotlin.String value='K'
DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(String)'
value: CONST String type=kotlin.String value='K'
INSTANCE_INITIALIZER_CALL classDescriptor='C2'