[NI] Fix resulting type when there are no proper constraints
This commit is contained in:
+2
-2
@@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -49,7 +49,7 @@ class ResultTypeResolver(
|
|||||||
|
|
||||||
// no proper constraints
|
// no proper constraints
|
||||||
return variableWithConstraints.typeVariable.freshTypeConstructor.builtIns.run {
|
return variableWithConstraints.typeVariable.freshTypeConstructor.builtIns.run {
|
||||||
if (direction == ResolveDirection.TO_SUBTYPE) nothingType else anyType
|
if (direction == ResolveDirection.TO_SUBTYPE) nothingType else nullableAnyType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user