fixed test data

type mismatch with nothing (after change in ConstraintSystemImpl)
render 'CANT_INFER' type as '???'
This commit is contained in:
Svetlana Isakova
2013-03-04 14:05:47 +04:00
parent 1d55e359a5
commit d7412ecd9f
5 changed files with 36 additions and 5 deletions
@@ -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&lt;???&gt;</td>
</tr>
<tr>
<td>
Found:</td>
<td>
jet.Nothing?</td>
</tr>
</table>
</html>