JDR, minor: clarifying comment
This commit is contained in:
+1
@@ -184,6 +184,7 @@ public class LazyPackageFragmentScopeForJavaClass(
|
|||||||
.map { c -> c.getFqName().sure("Nested class has no fqName: $c}") }.toList()
|
.map { c -> c.getFqName().sure("Nested class has no fqName: $c}") }.toList()
|
||||||
|
|
||||||
override fun computeNonDeclaredFunctions(result: MutableCollection<SimpleFunctionDescriptor>, name: Name) {
|
override fun computeNonDeclaredFunctions(result: MutableCollection<SimpleFunctionDescriptor>, name: Name) {
|
||||||
|
//NOTE: assuming that all sam constructors are created for interfaces which are static and should be placed in this scope
|
||||||
val samConstructor = getContainingDeclaration().getCorrespondingClass().getUnsubstitutedInnerClassesScope().getClassifier(name)
|
val samConstructor = getContainingDeclaration().getCorrespondingClass().getUnsubstitutedInnerClassesScope().getClassifier(name)
|
||||||
?.createSamConstructor()
|
?.createSamConstructor()
|
||||||
if (samConstructor != null) {
|
if (samConstructor != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user