Nullability checks for infix operations

This commit is contained in:
Andrey Breslav
2011-03-28 18:17:57 +04:00
parent 739fce330c
commit 73bfc57492
7 changed files with 126 additions and 37 deletions
@@ -1,6 +1,12 @@
import java.*
import util.*
fun f_plus(): Int {
var x: Int = 1
x = x `std::Int.plus(Int)`+ 1
return x
}
~X~class X<~T~T> {
~X()~this() {}
fun foo(a : `T`T) : `X`X<`T`T>{}