KT-16440 ClassConstructorDescriptorImpl has null returnType

Set constructor return type in FunctionDescriptorResolver#createConstructorDescriptor
(it seems to be the only place where ClassConstructorDescriptorImpl#initialize(...)
is called, but returnType is not set).
This commit is contained in:
Dmitry Petrov
2017-03-01 17:04:46 +03:00
parent dc1d92855d
commit 97fbbc74e6
4 changed files with 24 additions and 0 deletions
@@ -0,0 +1,3 @@
class A
val test = A()
@@ -0,0 +1,14 @@
FILE /contructorCall.kt
CLASS CLASS A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
PROPERTY public val test: A
FIELD PROPERTY_BACKING_FIELD public val test: A
EXPRESSION_BODY
CALL 'constructor A()' type=A origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public fun <get-test>(): A
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test>(): A'
GET_FIELD 'test: A' type=A origin=null