blob: e46a07e377d892e730e271e02a7aa5a3ae07e649 [file] [log] [blame]
/** Tests that a final field annotation is inferred. */
public class FieldsImplicits {
final String finalField = "asdf";
static final String finalStaticField = "asdf";
String nonFinalField = "asdf";
void test() {
boolean a = finalField == "asdf";
boolean b = finalStaticField == "asdf";
// :: error: (not.interned)
boolean c = nonFinalField == "asdf";
}
}