fixed test data
type mismatch with nothing (after change in ConstraintSystemImpl) render 'CANT_INFER' type as '???'
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package b
|
||||
|
||||
trait A<T>
|
||||
|
||||
fun infer<T>(a: A<T>) : T {}
|
||||
|
||||
fun foo(nothing: Nothing?) {
|
||||
val i = infer(nothing)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<!-- typeMismatchWithNothing1 -->
|
||||
<html>
|
||||
Type mismatch.<table>
|
||||
<tr>
|
||||
<td>
|
||||
Required:</td>
|
||||
<td>
|
||||
b.A<???></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Found:</td>
|
||||
<td>
|
||||
jet.Nothing?</td>
|
||||
</tr>
|
||||
</table>
|
||||
</html>
|
||||
Reference in New Issue
Block a user