mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
lvti: forbid var/explicit type mix
don't treat var as explicit type
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
interface I {
|
||||
void m(int i, int j);
|
||||
}
|
||||
|
||||
class Main {
|
||||
void foo() {
|
||||
I in = <error descr="Cannot mix 'var' and explicitly typed parameters in lambda expression">(var i, int j)</error> -> {};
|
||||
I in1 = (var i, <error descr="Cannot resolve symbol 'j'">j</error><error descr="Identifier expected">)</error> -> {};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user