java.lang.AssertionError: Transient receiver is implicit for an explicit expression: REFERENCE_EXPRESSION. Receiver: {Transient} : MyClassName

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via YouTrack by Unknown author, 1 year ago
Transient receiver is implicit for an explicit expression: REFERENCE_EXPRESSION. Receiver: {Transient} : MyClassName
java.lang.AssertionError: Transient receiver is implicit for an explicit expression: REFERENCE_EXPRESSION. Receiver: {Transient} : MyClassName
at org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowValueFactory.getIdForImplicitReceiver(DataFlowValueFactory.java:319)
at org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowValueFactory.getIdForSimpleNameExpression(DataFlowValueFactory.java:299)
at org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowValueFactory.getIdForStableIdentifier(DataFlowValueFactory.java:264)
at org.jetbrains.kotlin.resolve.calls.smartcasts.DataFlowValueFactory.createDataFlowValue(DataFlowValueFactory.java:119)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractionEngine.ExtractionData.getPossibleTypes(ExtractionData.kt:190)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractionEngine.ExtractionData.getBrokenReferencesInfo(ExtractionData.kt:224)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractionEngine.InferParameterInfoKt.inferParametersInfo(inferParameterInfo.kt:78)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractionEngine.ExtractableAnalysisUtilKt.performAnalysis(extractableAnalysisUtil.kt:635)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractionEngine.ExtractionEngine.run(ExtractionEngine.kt:57)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractFunction.ExtractKotlinFunctionHandler.doInvoke(ExtractKotlinFunctionHandler.kt:59)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractFunction.ExtractKotlinFunctionHandler$invoke$1.invoke(ExtractKotlinFunctionHandler.kt:77)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractFunction.ExtractKotlinFunctionHandler$invoke$1.invoke(ExtractKotlinFunctionHandler.kt:34)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetSibling$1.invoke(introduceUtil.kt:67)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetSibling$2.invoke(introduceUtil.kt:70)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetSibling$2.invoke(introduceUtil.kt)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetParent$2$2.invoke(introduceUtil.kt:102)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetParent$2$2.invoke(introduceUtil.kt)
at org.jetbrains.kotlin.idea.refactoring.KotlinRefactoringUtilKt.chooseContainerElementIfNecessary(kotlinRefactoringUtil.kt:417)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetParent$2.invoke(introduceUtil.kt:96)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetParent$4$1.run(introduceUtil.kt:122)
at org.jetbrains.kotlin.idea.refactoring.KotlinRefactoringUtil.selectExpression(KotlinRefactoringUtil.java:349)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt$selectElementsWithTargetParent$4.invoke(introduceUtil.kt:120)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt.selectElementsWithTargetParent(introduceUtil.kt:139)
at org.jetbrains.kotlin.idea.refactoring.introduce.IntroduceUtilKt.selectElementsWithTargetSibling(introduceUtil.kt:70)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractFunction.ExtractKotlinFunctionHandler.selectElements(ExtractKotlinFunctionHandler.kt:65)
at org.jetbrains.kotlin.idea.refactoring.introduce.extractFunction.ExtractKotlinFunctionHandler.invoke(ExtractKotlinFunctionHandler.kt:77)
at com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:134)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:595)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:646)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:485)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:215)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:631)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.