Fix local delegated property smartcast usage

This commit is contained in:
Ilya Gorbunov
2018-06-22 20:49:52 +03:00
parent 80f022c3d5
commit bed26dc700
3 changed files with 11 additions and 12 deletions
@@ -793,7 +793,7 @@ class ClassFileToSourceStubConverter(
private fun convertAnnotationArgument(constantValue: Any?, value: ResolvedValueArgument?): JCExpression? {
val args = value?.arguments?.mapNotNull { it.getArgumentExpression() } ?: emptyList()
val singleArg by lazy { args.singleOrNull() }
val singleArg = args.singleOrNull()
if (constantValue.isOfPrimiviteType()) {
// Do not inline primitive constants