mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-11-13 00:33:59 +07:00
new inference: provide diagnostics on failed inference (strict subtyping constraints); don't resolve vars before incorporate - this way captures won't be opened too early
This commit is contained in:
1 parent
24bfcbcd27
commit
138bd5a034
8 files changed
+24
-21
No files matched your search
+1
-1
@@ -32,6 +32,6 @@ class ReturnTypeCompatibility {
|
||||
call((String i)->{ return i;});
|
||||
call(i->{ return i;});
|
||||
call(i->"");
|
||||
call((int i)->{ return <error descr="Bad return type in lambda expression: int cannot be converted to P">i</error>;});
|
||||
call(<error descr="no instance(s) of type variable(s) exist so that Integer conforms to int">(int i)->{ return i;}</error>);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user