IDEA-125805 (language level increase quickfix for switch on enum/string)

This commit is contained in:
Roman Shevchenko
2014-06-02 20:14:07 +04:00
parent 75a492a4e0
commit b8be4e29d9
7 changed files with 73 additions and 67 deletions
@@ -41,6 +41,10 @@ class UnsupportedFeatures {
I i1 = <error descr="Method references are not supported at this language level">UnsupportedFeatures::m</error>;
I i2 = <error descr="Lambda expressions are not supported at this language level">() -> { }</error>;
switch (<error descr="Incompatible types. Found: 'java.lang.String', required: 'byte, char, short or int'">list.get(0)</error>) {
case "foo": break;
}
}
interface I {