[JS IR BE] Choose actual declaration of COROUTINE_SUSPEND_NAME

This commit is contained in:
Svyatoslav Kuzmich
2018-08-23 19:58:20 +03:00
parent 5192783669
commit 97717afec4
@@ -186,7 +186,7 @@ class JsIrBackendContext(
get() = TODO("not implemented")
override val coroutineImpl = symbolTable.referenceClass(getInternalClass(COROUTINE_IMPL_NAME.identifier))
override val coroutineSuspendedGetter = symbolTable.referenceSimpleFunction(
coroutineIntrinsicsPackage.memberScope.getContributedVariables(COROUTINE_SUSPENDED_NAME, NoLookupLocation.FROM_BACKEND).single().getter!!
coroutineIntrinsicsPackage.memberScope.getContributedVariables(COROUTINE_SUSPENDED_NAME, NoLookupLocation.FROM_BACKEND).filterNot { it.isExpect }.single().getter!!
)
}