3272 // resolved) |
3272 // resolved) |
3273 |
3273 |
3274 if (sym.name != names.init) { |
3274 if (sym.name != names.init) { |
3275 chk.checkDeprecated(tree.pos(), env.info.scope.owner, sym); |
3275 chk.checkDeprecated(tree.pos(), env.info.scope.owner, sym); |
3276 chk.checkSunAPI(tree.pos(), sym); |
3276 chk.checkSunAPI(tree.pos(), sym); |
|
3277 chk.checkProfile(tree.pos(), sym); |
3277 } |
3278 } |
3278 |
3279 |
3279 // Test (3): if symbol is a variable, check that its type and |
3280 // Test (3): if symbol is a variable, check that its type and |
3280 // kind are compatible with the prototype and protokind. |
3281 // kind are compatible with the prototype and protokind. |
3281 return check(tree, owntype, sym.kind, resultInfo); |
3282 return check(tree, owntype, sym.kind, resultInfo); |