# Multi Platform project with JVM typealias - strange error message

**URL:** <https://discuss.kotlinlang.org/t/multi-platform-project-with-jvm-typealias-strange-error-message/7316>\
**Category:** Support\
**Created:** [April 4, 2018, 6:51am UTC](https://discuss.kotlinlang.org/t/multi-platform-project-with-jvm-typealias-strange-error-message/7316 "2018-04-04T06:51:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nimloth05](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@nimloth05](https://discuss.kotlinlang.org/u/nimloth05)\
**Post date:** [April 4, 2018, 6:51am UTC](https://discuss.kotlinlang.org/t/multi-platform-project-with-jvm-typealias-strange-error-message/7316/1 "2018-04-04T06:51:54Z")

</div>

I have the following common code declaration:

```
expect open class Observable<T> {}

```

With a JVM Implementation like this:

```
actual typealias Observable<T> = rx.Observable<T>

```

Now I have an interface in my common code, with the following method:

```
interface OrcaSource {
     fun observeModelStore(): Observable<ModelStoreChangeEvent>
}

```

If I try to implement this interface in the JVM package I get the following error:

“Return type is 'ch.viseon.orca2.rx.Observable /\* = rx.Observable \*/ which is not a subtype of overridden public abstract fun observeModelStore(): ch.viseon.orca2.rx.Observable defined in ch.viseon.orca2.common.OraSource”

I don’t understand this error message. On the JVM Observable is a type alias to my declaration, so it should be interchangeable to my declaration - should it not?

---

<div class="post-metadata">

**Author:** ![udalov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/udalov/32/5679_2.png) [@udalov](https://discuss.kotlinlang.org/u/udalov)\
**Post date:** [April 4, 2018, 8:33pm UTC](https://discuss.kotlinlang.org/t/multi-platform-project-with-jvm-typealias-strange-error-message/7316/2 "2018-04-04T20:33:56Z")

</div>

This is a known issue that is being worked on: [https://youtrack.jetbrains.com/issue/KT-22868](https://youtrack.jetbrains.com/issue/KT-22868)
