3410 // resolved) |
3410 // resolved) |
3411 |
3411 |
3412 if (sym.name != names.init) { |
3412 if (sym.name != names.init) { |
3413 chk.checkDeprecated(tree.pos(), env.info.scope.owner, sym); |
3413 chk.checkDeprecated(tree.pos(), env.info.scope.owner, sym); |
3414 chk.checkSunAPI(tree.pos(), sym); |
3414 chk.checkSunAPI(tree.pos(), sym); |
|
3415 chk.checkProfile(tree.pos(), sym); |
3415 } |
3416 } |
3416 |
3417 |
3417 // Test (3): if symbol is a variable, check that its type and |
3418 // Test (3): if symbol is a variable, check that its type and |
3418 // kind are compatible with the prototype and protokind. |
3419 // kind are compatible with the prototype and protokind. |
3419 return check(tree, owntype, sym.kind, resultInfo); |
3420 return check(tree, owntype, sym.kind, resultInfo); |