704 memberEnter.memberEnter(tree, env); |
704 memberEnter.memberEnter(tree, env); |
705 annotate.flush(); |
705 annotate.flush(); |
706 } |
706 } |
707 } |
707 } |
708 |
708 |
709 // Check that the variable's declared type is well-formed. |
|
710 chk.validate(tree.vartype, env); |
|
711 |
|
712 VarSymbol v = tree.sym; |
709 VarSymbol v = tree.sym; |
713 Lint lint = env.info.lint.augment(v.attributes_field, v.flags()); |
710 Lint lint = env.info.lint.augment(v.attributes_field, v.flags()); |
714 Lint prevLint = chk.setLint(lint); |
711 Lint prevLint = chk.setLint(lint); |
|
712 |
|
713 // Check that the variable's declared type is well-formed. |
|
714 chk.validate(tree.vartype, env); |
715 |
715 |
716 try { |
716 try { |
717 chk.checkDeprecatedAnnotation(tree.pos(), v); |
717 chk.checkDeprecatedAnnotation(tree.pos(), v); |
718 |
718 |
719 if (tree.init != null) { |
719 if (tree.init != null) { |