Disallow named arguments for Java methods

Since they don't have stable names: they're (sometimes) loaded from the
bytecode, which (sometimes) doesn't contain parameter names
This commit is contained in:
Alexander Udalov
2014-03-19 17:57:18 +04:00
parent 5fa1774cc1
commit 1c5df773c5
10 changed files with 74 additions and 33 deletions
@@ -55,7 +55,7 @@ class UsageTracker(
}
private fun captureIfNeed(descriptor: CallableDescriptor?) {
if (descriptor == null || isCaptured(descriptor) || isAncestor(containingDescriptor, descriptor, strict = true)) return
if (descriptor == null || isCaptured(descriptor) || isAncestor(containingDescriptor, descriptor, /* strict = */ true)) return
parent?.captureIfNeed(descriptor)