[NI] Fix resulting type when there are no proper constraints

This commit is contained in:
Mikhail Zarechenskiy
2017-06-14 14:21:50 +03:00
parent 6be726854f
commit 7802492b08
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2016 JetBrains s.r.o.
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@ class ResultTypeResolver(
// no proper constraints
return variableWithConstraints.typeVariable.freshTypeConstructor.builtIns.run {
if (direction == ResolveDirection.TO_SUBTYPE) nothingType else anyType
if (direction == ResolveDirection.TO_SUBTYPE) nothingType else nullableAnyType
}
}