vala-intellij-plugin icon indicating copy to clipboard operation
vala-intellij-plugin copied to clipboard

Null Coalescing expression type inference should look for next common parent type

Open gregorej opened this issue 10 years ago • 0 comments

Example:

class A { }

class B : A {}

class C: A {}

int main(string [] args) {
    var c = new class B() ?? new class C();
}

inferred type of c should be A

gregorej avatar Feb 01 '15 15:02 gregorej