Specify source for default impl

(cherry picked from commit b37fd90128cea61df9c53a5b48bea6092ea9ec57)
This commit is contained in:
Mikhael Bogdanov
2017-07-31 15:39:35 +02:00
committed by Vasily Levchenko
parent a24c5232cd
commit 4a2d4b932b
@@ -346,7 +346,7 @@ private fun FunctionDescriptor.generateDefaultsFunction(context: CommonBackendCo
/* containingDeclaration = */ containingDeclaration,
/* annotations = */ annotations,
/* isPrimary = */ false,
/* source = */ SourceElement.NO_SOURCE)
/* source = */ source)
is FunctionDescriptor -> {
val name = Name.identifier("$name\$default")
@@ -355,7 +355,7 @@ private fun FunctionDescriptor.generateDefaultsFunction(context: CommonBackendCo
/* annotations = */ annotations,
/* name = */ name,
/* kind = */ CallableMemberDescriptor.Kind.SYNTHESIZED,
/* source = */ SourceElement.NO_SOURCE)
/* source = */ source)
}
else -> TODO("FIXME: $this")
}