equal
deleted
inserted
replaced
2817 Symbol sym = findMethod(env, site, |
2817 Symbol sym = findMethod(env, site, |
2818 names.init, argtypes, |
2818 names.init, argtypes, |
2819 typeargtypes, allowBoxing, |
2819 typeargtypes, allowBoxing, |
2820 useVarargs); |
2820 useVarargs); |
2821 chk.checkDeprecated(pos, env.info.scope.owner, sym); |
2821 chk.checkDeprecated(pos, env.info.scope.owner, sym); |
|
2822 chk.checkPreview(pos, sym); |
2822 return sym; |
2823 return sym; |
2823 } |
2824 } |
2824 |
2825 |
2825 /** Resolve constructor using diamond inference. |
2826 /** Resolve constructor using diamond inference. |
2826 * @param pos The position to use for error reporting. |
2827 * @param pos The position to use for error reporting. |